A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi,
If you leave row 8 empty then this works fine
ws.Range("A9").AutoFilter
If you don't want to leave A8 (or is it B?) then you can do this. Change the A's to B's if required
Dim ws As Worksheet
Dim LastRow As Long
Set ws = Sheets("Sheet1")
LastRow = ws.Range("A9").End(xlDown).Row
ws.Range("$A$9:A" & LastRow).AutoFilter