Hello, I'm trying to use a toggle button to protect and unprotect a worksheet. I have this code Private Sub ToggleButton1_Click()
If ActiveSheet.ProtectContents = True Then
ActiveSheet.Unprotect "test"
Else
ActiveSheet.Protect "test"
End If
End Sub
Although, It works (in a sense that...