Getting Rid of Toolbar Macro

E

eric

Adobe Acrobat obnoxiously loads a toolbar and menu item
into all Office Applications when they start. I would
like to get rid of the toolbar but keep the menu items and
can't figure out how to do this. I recorded a macro that
uses the 'CommandBars("PDFMaker 6.0").Visible = False'
property which is activated when I press a particular
keyboard combination. I would like this to run
automatically when Word gets the focus however (if I close
the toolbar using this combination, switch to another
application or document, and then switch back to the
original document the toolbar re-appears).

I guess what I need to do is trap for word getting the
focus and then setting the commandbar's visible property
to false. I am wondering how to do this and will post any
code that works at the Adobe site since MANY people are
complaining about the toolbar 'feature'.

Thanks.
 
R

Rick Stebbins

Choose Tools - Templates and Add-Ins and identify the add-
in that is displaying the toolbar. Then exit Word, and
move it out of Word's Startup folder. If you have trouble
locating Word's Startup folder, just search for the file
in Windows.

If the toolbar is still visible after restarting Word;
choose Tools - Templates and Add-Ins to verify that the
add-in did not load, and then choose Tools-Customize, and
delete the toolbar.
 
E

eric

Adobe runs several macros that load the toolbar as well as
a menubar as well as some added functionality. I want to
get rid of just the toolbar not the menubar or other
features so I'm not sure your suggestion will work.

Eric
 
R

Rick Stebbins

If you made your toolbar setting with the
CustomizationContext set to the active document, it will
be lost when you switch to other documents. Try using
NormalTemplate as the CustomizationContext.

If that does not work, you are correct that you might have
to listen for Word's events, such as DocumentChange, and
run your code every time. Here's a good article about
event handling:

http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/dnword2k2/html/odc_wdappevnt.asp
 

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