Use the following 5 times in the Intermediate Window to
remove the 5 additions that you added:
Application.CommandBars("Cell").Controls("freeze panes").Delete
Summary and a couple of additional items:
To add / To remove to Context Menu via the Intermediate Window
Application.CommandBars("Cell").Controls.Add Id:=443
Application.CommandBars("Cell").Controls("freeze panes").Delete
To Find id
?Commandbars("Worksheet Menu Bar").Controls( _
"Window").Controls("Freeze Panes").Id
In Excel 2000 (on a PC), the Window Menu does change when the change
is is made via the context (RightClick) menu addition. JE has a Mac
which might be a difference.
Another way of seeing the id number is via Jim Rech's FaceID
addin, which lists all of the button ids in Excel,
http://www.bmsltd.ie/MVP/MVPPage.asp
But the previous method of finding the ID via the Intermediate
Window is a lot more practical, and there are lots of duplications
of the buttons so it would be hard to tell if you chose the correct one.
I've included this information in an addition to by
Right Click Menus (Context Menus) in Excel
http://www.mvps.org/dmcritchie/excel/rightclick.htm#CtrlG