tuccokeith
Technical User
Hello,
I want to code one Command Button to protect an Excel worksheet and another one to unprotect a worksheet.
I need to do this because the autofilter does not work when a worksheet is protected.
Can this be done using a typical command button VB macro?
Private Sub CommandButton1_Click()
If CommandButton1.Caption = "Allow Autofilter" Then
???????????
End If
End Sub
I want to code one Command Button to protect an Excel worksheet and another one to unprotect a worksheet.
I need to do this because the autofilter does not work when a worksheet is protected.
Can this be done using a typical command button VB macro?
Private Sub CommandButton1_Click()
If CommandButton1.Caption = "Allow Autofilter" Then
???????????
End If
End Sub