Menu tag

T

Tarjei T. Jensen

I belive that I want to tag a custom menu.

If I use this tag to delete a menu, will the elements in the menu get
deleted as well? The code I intend to use is shown below (I may add "on
error resume next"). Will elements added to the menu inherit the tag?


With Application.CommmandBars
Do
.FindControl(tag:=mytag, visible:=False ).Delete
Loop Until .FindControl(Tag:=mytag, Visible:=False) Is Nothing
End With

The idea was lifted from
http://www.erlandsendata.no/english/index.php?d=envbacbmenuxl97

greetings,
 
C

Charles Kenyon

How about simply disabling the toolbar / menu and making it invisible?

Yes, if you delete a menu, you delete its constituent parts. You don't
delete underlying macros or commands, but you do delete the menu.
--

Charles Kenyon

Word New User FAQ & Web Directory:
<URL: http://addbalance.com/word/index.htm>

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide)
<URL: http://addbalance.com/usersguide/index.htm>

See also the MVP FAQ: <URL: http://www.mvps.org/word/> which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 
T

Tarjei T. Jensen

Charles said:
How about simply disabling the toolbar / menu and making it invisible?

Because that is not what I want to do. The point is to delete the menu and
rebuild it with new components.
Yes, if you delete a menu, you delete its constituent parts. You don't
delete underlying macros or commands, but you do delete the menu.

Thanks. Then I won't have to loop through the components and delete them.

greetings,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top