Article ID: 125423
Article Last Modified on 10/10/2006
Sub DeleteIt()
MenuBars(xlWorksheet).Menus("Tools").MenuItems("Protection").Delete
End Sub
If you then want to restore the Protection submenu to the Tools menu, use
the following code:
Sub AddItBack()
MenuBars(xlWorksheet).Menus("Tools").MenuItems.AddMenu _
Caption:="Protection", restore:=True, before:="Add-Ins..."
End Sub
163435 VBA: Programming Resources for Visual Basic for Applications
Additional query words: 5.00a 5.00c 7.00a 97 XL97 XL7 XL5 XL
Keywords: kbdtacode kbhowto kbprogramming KB125423