Protect/Unprotect function options
Hi,
I need to allow "Autofiltering=True" when the protect function turns on. Tried to create a macro for protect to get a code sample but could not make it work with the following functions:
Private Function unprotectSh(Sh As String)
z = "me"
unprotectSh = Sheets(Sh).unprotect(z)
End Function
Private Function protectSh(Sh As String)
z = "me"
protectSh = Sheets(Sh).protect(z)
End Function
When protect funtions executes, autofilter on the worksheet doesnot work.
Your help in this is greatly appreciatied, thank you.
Sincerely,
Floss
|