Selecting a row or column
Selecting a row or column | VBA Excel @ ExcelOptimize.Com
The following procedure demonstrates how to select the column that contains the active cell. It uses the EntireColumn property, which returns a Range object that consists of a full column:
Sub SelectColumn()
ActiveCell.EntireColumn.Select
End Sub

As you may expect, VBA also offers an EntireRow property, which returns a Range object that consists of an entire row.


Leave a Reply