I just started using autofilter to avoid looping as much in my code but am hoping someone can help me to understand how I can use the autofilter in VBA to, for example, clear a cell in Field2 where the criteria in Field2 and Field1 match.
Would I use offset somehow like (this example will obviously not work )
Thanks,
Giga_Me
Would I use offset somehow like (this example will obviously not work )
Code:
Cells(1, 1).AutoFilter field:=2, Criteria1:="=" & Cells.Offset(0, -1)
rng.SpecialCells(xlCellTypeVisible).Clear
Thanks,
Giga_Me