New to
VB. Want to remove the Insert Worksheet option on open and Reset at
close. Using this code:
Module 1:
Sub menuItem_Delete()
Dim myCmd As Object
Set myCmd = CommandBars("Worksheet menu bar").Controls("Insert")
myCmd.Controls("Worksheet").Delete
End Sub
Module 2:
Sub MenuBar_Restore()
CommandBars("Insert").Reset
End Sub
Can't get Module 2 to work on close. Any help is greatly appreciated.