Friday, September 9, 2011

Selecting The Current Array

If the ActiveCell is part of an array, this macro will select the entire array.
Public Sub SelectArray()

Dim Msg As String

On Error GoTo EndOfMacro
Msg = "Cell is not part of an array."

ActiveCell.CurrentArray.Select
Msg = "Array Selected."


EndOfMacro:
Application.StatusBar = Msg

End Sub

No comments:

Post a Comment