awsumchillicrab
Board Regular
- Joined
- Jan 30, 2011
- Messages
- 56
Hi,
After I autofilter in VBA, I want to select the visible rows, but not the header row (row 1). Since the visible cells may not start with Row 2, I have resorted to this formula:
However, if my last row is Row 100, this also selects Row 101. How do I avoid this?
After I autofilter in VBA, I want to select the visible rows, but not the header row (row 1). Since the visible cells may not start with Row 2, I have resorted to this formula:
Range("A1").CurrentRegion.EntireRow.Offset(1,0).SpecialCells(xlCellTypeVisible).Delete
However, if my last row is Row 100, this also selects Row 101. How do I avoid this?