Naively thought; .Range("D8:D16"). AutoFilter would limit the filter to JUST that range.
However it is filtering the whole of Col D (D:D).
What do I need to change so it ONLY filters "D8:D16"
However it is filtering the whole of Col D (D:D).
What do I need to change so it ONLY filters "D8:D16"
VBA Code:
Sub AutoFilterTable1Column1CellValue()
With ThisWorkbook.ActiveSheet
.Range("D8:D16").AutoFilter Field:=1, Criteria1:="" & .Range("B8").value
End With
End Sub