An Quala
Board Regular
- Joined
- Mar 21, 2022
- Messages
- 146
- Office Version
- 2021
- Platform
- Windows
I want to select the second row # visible after applying the filter, currently it is "2:2" but I want it to be the second row # as first one is the header and then go down and select the visible range, can anyone help me in correcting this?
Thank you.
Thank you.
VBA Code:
Sub Justtesting()
Sheets("Sponsored Products").Select
Cells.Select
Selection.AutoFilter
ActiveSheet.Range("$A$1:$AQ$" & Cells(Rows.Count, "A").End(xlUp).Row).AutoFilter Field:=2, Criteria1:=Array( _
"Ad Group", "Bidding Adjustment", "Campaign", "Negative Keyword", "Product Ad", "=") _
, Operator:=xlFilterValues
Rows("2:2").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Delete Shift:=xlUp
End Sub