property returns a Range object that represents the cell that is active. You can apply any of the properties or methods of a Range object to the active cell, as in the following example.
ActiveCell.Value = 35
You can work with the active cell only when the worksheet that it is on is the active sheet.
Moving the Active Cell
You can use the Activate method to designate which cell is the active cell. For example, the following procedure makes B5 the active cell and then formats it as bold.
ActiveCell.Font.Bold = True
To select a range of cells, use the Select method. To make a single cell the active cell, use the Activate method.
You can use the Offset property to move the active cell. The following procedure inserts text into the active cell in the selected range and then moves the active cell one cell to the right without changing the selection.
ActiveCell.Value = "Monthly Totals"
Selecting the Cells Surrounding the Active Cell
property returns a range of cells bounded by blank rows and columns. In the following example, the selection is expanded to include the cells adjoining the active cell that contain data. This range is then formatted with the Currency style.
Selection.Style = "Currency"