JamesJ said:
I'm assuming this must be typed and ran from the Immediate window.
I got the following error:
Runtime Error '5':
Invalid Procedure call or argument
and the Shortcut Menu Bar items remained
that means you not typed in the correct name.....
Check the "combo box" list of available menus when you bring up a form in
design mode (in the "other" tab of the property sheet). That drop down list
has the name(s) of those menu bars....
I mean, you could just "leave" those menus there. They should NOT be
appearing in the application unless your forms, or the "startup" settings
have specified those custom menubars. So, simply remove the "setting" in the
"other" tab of the property sheet for those forms that have custom menu bars
set. Note that you HAVE TO do this anyway, or you start getting error
messages when forms load about not finding some macro thingly. So, just
remove the settings in the other tab. When you do this the context menus
will not appear anymore. However the above command in the debug windows has
worked for me to delete those custom menu and shortcut menu bars.
So, you **have** to go into those forms and remove the shortcut menu
settings anyway, and THEN delete the menu bar(s) using my example command in
the debug window. That delete command should work, but lets deal with that
later anway. You still have to remove the settings in each form that has a
custom shortcut menu set regardless if you can't get the delete example
command to work.....