Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50228

How to use advanced filter in a protective mode???

$
0
0
Hi guys,

I am currently using the following code to copy and paste filtered cells from another worksheet:

Code:

Sub PERTH()
'
    Sheets("Abstract").Range("E20:AB98").AdvancedFilter _
        Action:=xlFilterCopy, _
        CriteriaRange:=Sheets("Abstract").Range("AD18:AD19"), _
        CopyToRange:=Sheets("COMPUTER").Range("E20:AB98"), _
        Unique:=False
 
End Sub

And the code works fine but it doesn't work when the worksheet is in a protective mode.

Is there any way I can make this still work in a protective mode?

Any idea?

Thanks

Viewing all articles
Browse latest Browse all 50228

Trending Articles