Help with understanding toolbars, please?

E

Ed

I am doing a lot of document comparison, where I have two docs open at the
same time, with widows arranged horizontally. To get more room, I run a
macro to hide all the toolbars except the Menu Bar. The macro also adds a
new menu and command to the Menu Bar to run a macro to bring the toolbars
back; this also deletes the new menu.

I just noticed that when I run the "Hide" macro, the toolbars for that
window only are hidden, but the new menu is added to the Menu Bar in both
windows. Running the macro twice gives me two new menus, but it must be run
twice because it only hides the toolbars in one window, not both.

Is this normal behavior? Or should I look for a problem with my code?

Ed
 
W

Word Heretic

G'day "Ed" <ed_millis@NO_SPAM.yahoo.com>,

The easy way is to include the replacement menu with the template and
default it to hidden. When you hide the std ones, you show yours, and
vv.

Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice


Ed reckoned:
 
E

Ed

Thanks for the tip, Steve. Actually, I found my answer was
CustomizationContext = ActiveDocument
That seemed to constrain my "new menu" activity to, well,
the ActiveDocument, as opposed to application-wide.

Ed
 

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