So you have more than one File -> Save submenu on your pop-up menu? Or do
you have multiple items on the File menu that, when picked, show another
submenu with "Save" as one of the items?
If it's the former, then you can use the ordinal value to specify exactly
which submenu on the File menu needs to be disabled. For example (watch out
for word wrap, as this is all one line):
Application.CommandBars("MyPopUpMenu").Controls.Item("File").Controls.Item(4).Enabled = False
.. . . where the File -> Save submenu you want to disable is the fourth item
on the File menu.
If it's the latter, then you can use the name of the item on the File menu
that needs to be selected before the Save item is displayed. For example
(watch out for word wrap, as this is all one line):
Application.CommandBars("MyPopUpMenu").Controls.Item("File").Controls.Item("Template").Controls.Item("Save").Enabled = False
HTH.
Gunny
See
http://www.QBuilt.com for all your database needs.
See
http://www.Access.QBuilt.com for Microsoft Access tips.
(Please remove ZERO_SPAM from my reply E-mail address so that a message will
be forwarded to me.)
- - -
If my answer has helped you, please sign in and answer yes to the question
"Did this post answer your question?" at the bottom of the message, which
adds your question and the answers to the database of answers. Remember that
questions answered the quickest are often from those who have a history of
rewarding the contributors who have taken the time to answer questions
correctly.