Dear Folks,
I am trying to select specific columns from the filtered data but it select the all the columns. Can anyone help with the changes in my code.
In my below code, it selects from A to P but I want to select A to N only. Please anyone can help where I can make changes into my code.
I am trying to select specific columns from the filtered data but it select the all the columns. Can anyone help with the changes in my code.
In my below code, it selects from A to P but I want to select A to N only. Please anyone can help where I can make changes into my code.
Code:
Sheets("MyWork").Select
Rng2 = Sheets("MyWork").Range("O210").End(xlUp).Row
Range("P4").Select
Range("$A$4:$P" & Rng2).AutoFilter Field:=16, Criteria1:="0"
Range("A4:P" & Rng2).Select
ActiveCell.Offset(1, 0).Select
Do Until ActiveCell.EntireRow.Hidden = False
ActiveCell.Offset(1, 0).Select
Loop
Range(Selection, Selection.End(xlDown)).Select
Range(Selection, Selection.End(xlToRight)).Select
Selection.Copy
Last edited: