just in quotes behind the command:

If isprotected = True Then Sh.Unprotect "temp"
and
If isprotected = True Then Sh.Protect "temp"
or you can use the actual name of the parameter but don't have to:

If isprotected = True Then Sh.Unprotect Password:="temp"
and
If isprotected = True Then Sh.Protect Password:="temp"