Sub Id_Control()
Dim myId As Object
Set myId = CommandBars("Worksheet Menu Bar").Controls("Outils")
MsgBox myId.Caption & Chr(13) & myId.ID
End Sub
Sub Menu_Disable()
CommandBars("Worksheet menu bar").Controls("Outils").Enabled = False
End Sub
Sub Menu_Enable()
CommandBars("Worksheet menu bar").Controls("Outils").Enabled = True
End Sub
Sub MenuItem_Disable()
Dim myCmd As Object
Set myCmd = CommandBars("Worksheet menu bar").Controls("Outils")
myCmd.Controls("Protection").Enabled = False
End Sub
Sub MenuItem_Enable()
Dim myCmd As Object
Set myCmd = CommandBars("Worksheet menu bar").Controls("Outils")
myCmd.Controls("Protection").Enabled = True
End Sub