Guzzlr
Well-known Member
- Joined
- Apr 20, 2009
- Messages
- 982
- Office Version
- 2021
- Platform
- Windows
Hello
I used the recorder to get:
I wish to copy sheet and move to a new sheet named TEST.
My problem, is i cant copy and paste to he new sheet because the filter is on.
If I take the filter off, then all the data comes back.
so how do I filter and retain the filtered data, with out a filter and copied to the new work sheet?
Thank you
I used the recorder to get:
VBA Code:
Rows("5:5").Select
Selection.AutoFilter
ActiveSheet.Range("$A$5:$AK$23665").AutoFilter Field:=4, Criteria1:= _
"Maintenance"
ActiveSheet.Range("$A$5:$AK$23665").AutoFilter Field:=5, Criteria1:= _
"Completed"
Selection.AutoFilter
I wish to copy sheet and move to a new sheet named TEST.
My problem, is i cant copy and paste to he new sheet because the filter is on.
If I take the filter off, then all the data comes back.
so how do I filter and retain the filtered data, with out a filter and copied to the new work sheet?
Thank you