I'm using excel vba to delete filtered rows. The code is working just when I specified the range to be on A1 and put my table headers on A1. But, my table headers on B9 so I need to put it on the range but that error occurs. I didn't know why its working for Range("A1") and it didn't work for Range("B9"). In addition when I put A1 as my range to my table it deleted all the rows not just the filtered rows.
Sub Delete_CD_Blanks()
Dim Rng As Range
Dim Rng_Del As Range
Set Rng = Range("B9").CurrentRegion
If Sheets("tt").AutoFilterMode = True Then
Sheets("tt").AutoFilter.ShowAllData
End If
' Rng.AutoFilter field:=4, Criteria1:=” = ”
Rng.AutoFilter field:=6, Criteria1:="??? ?????"
Rng.Offset(1, 0).SpecialCells(xlCellTypeVisible).EntireRow.Delete
Sheets("tt").AutoFilterMode = False
End Sub