I have a macro I have been using to search throughout data, but it doesn't seem to work with a protected sheet.
"Run-time error '1004':
You cannot use this command on a protected sheet. To use this....." pops up when trying to use.
Here is my code:
Is there any way to do this with a protected sheet?
Thanks!
"Run-time error '1004':
You cannot use this command on a protected sheet. To use this....." pops up when trying to use.
Here is my code:
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("A3")) Is Nothing Then
If Range("A3") = "" Then
On Error Resume Next ' in case autofilter not applied
ActiveSheet.ShowAllData
Else
Range("A7:G1752").AutoFilter Field:=8, Criteria1:="TRUE"
End If
End If
End Sub
Is there any way to do this with a protected sheet?
Thanks!