If that is what you want try this:
![]()
Sub ToggleProtect() If Sheets("Sheet1").ProtectContents = True Then Else Sheets("Sheet1").Protect Password = "PASSWORD" End If End Sub
If that is what you want try this:
![]()
Sub ToggleProtect() If Sheets("Sheet1").ProtectContents = True Then Else Sheets("Sheet1").Protect Password = "PASSWORD" End If End Sub
Click *Add Reputation to thank those who helped you. Ask if anything is not clear
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks