deletedalien
Well-known Member
- Joined
- Dec 8, 2008
- Messages
- 505
- Office Version
-
- 2013
- Platform
-
- Windows
HI again,
I need to copy a certain range from a protected sheet where users CAN use filters, (so filters are not protected) but i cant unfilter the data to be able to copy the entire range i need,
and when i do copy the range indicates B2:B130 it only copies the visible cells (when filters are applied.)
Is there a way top copy all cells in the range regardless of filter selection????
here is my current code
I need to copy a certain range from a protected sheet where users CAN use filters, (so filters are not protected) but i cant unfilter the data to be able to copy the entire range i need,
and when i do copy the range indicates B2:B130 it only copies the visible cells (when filters are applied.)
Is there a way top copy all cells in the range regardless of filter selection????
here is my current code
Code:
Dim LastRow As Long
Sheets("Agent List").Select
Range("A2:A10000").ClearContents
Range("A2").Select
Sheets("1").Range("B20:B130").Copy
Sheets("Agent List").Range("A2").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
LastRow = Cells(Rows.Count, 1).End(xlUp).Row
Cells(LastRow, 1).Offset(1, 0).Select
Last edited: