Article ID: 148462
Article Last Modified on 6/23/2005
Sub Resize()
' Selects the current data area.
Selection.CurrentRegion.Select
' Selects the current data area without the top row.
Selection.Offset(1, 0).Resize(Selection.Rows.Count - 1).Select
' Selects the visible cells of the selection.
' This is useful if data is filtered or contains hidden rows.
Selection.SpecialCells(xlVisible).Select
End Sub
To use the macro, follow these steps:
A1: Name B1: Amount
A2: Bob B2: 1
A3: Sue B3: 2
A4: Mary B4: 1
A5: Jane B5: 3
Additional query words: 5.00a 5.00c 8.00 XL98 XL97 XL7 XL5 XL
Keywords: kbhowto kbprogramming kbdtacode KB148462