just in quotes behind the command:
and![]()
If isprotected = True Then Sh.Unprotect "temp"
or you can use the actual name of the parameter but don't have to:![]()
If isprotected = True Then Sh.Protect "temp"
and![]()
If isprotected = True Then Sh.Unprotect Password:="temp"
![]()
If isprotected = True Then Sh.Protect Password:="temp"
Bookmarks