DW Faisalabad New Version

DW Faisalabad New Version
Please Jump to New Version
  • Working with Tables
  • While there are four types of database objects in Access, tables are arguably the most ... read more

    Tuesday, 11 July 2017

    CurrentRegion

    This example illustrates the CurrentRegion property in Excel VBA. The current region is a range bounded by any combination of blank rows and blank columns. Can you find the current region of cell A1?



    Place a command button on your worksheet and add the following code line:
    Range("A1").CurrentRegion.Select
    Result when you click the command button on the sheet:



    Here is another example. Can you find the current region of cell B3?



    Code:
    Range("B3").CurrentRegion.Select
    Result:



    The value 1 in row 1 has no influence on the current region of cell B3. Row 2 is empty!.