Article ID: 149772
Article Last Modified on 10/11/2006
This example activates the last cell in the current selection.
Selection.SpecialCells(xlLastCell).Activate
Sub Activate_Selection_Lastcell()
' Get the number of rows of the selection.
RowCount = Selection.Rows.Count
' Get the number of columns of the selection.
ColumnCount = Selection.Columns.Count
' Activate the last cell of the selection.
Selection.Cells(RowCount, ColumnCount).Activate
End Sub
Additional query words: 5.00a 5.00c 5.0 lastcell XL5
Keywords: kbcode kbprogramming KB149772