'選択されているシートの保護を切り替える
'保護・保護解除がトグルになっています。
Sub ProtectChange()
Dim sh As Object
'選択したシートを列挙する
For Each sh In ActiveWindow.SelectedSheets
sh.Select 'そのシートを選択する
If sh.ProtectContents = True Then 'シートが保護の時
sh.Unprotect
Else 'シートが保護されてない時
sh.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True
End If
Next
End Sub