What is the syntax to clear an autofilter? (outdated)

Sheets(“<sheet's name>”).Range(“”).AutoFilter Field:=
‘example
lastClosetRow = Sheets("Closet").Cells(Worksheets("Closet").Rows.Count, "A").End(xlUp).Row ‘finds out how many entries are in the column
rngg = "A2:T" & lastClosetRow
 
Sheets("Closet").Range(rngg).AutoFilter Field:=2 ‘clears the filter in column B
Advertisements