Toolbar Hell

T

Tom_OM

Help, I'm in Toolbar Hell. I've been working on creating a Toolbar
that floats on top or docks per the user's choice. My experimental
Toolbar is named MacroXToolbar and contains the code that I showed in
my previous post, "CoolBar or MacroX Code for Floating Toolbar?" This
code was in my Normal.dot file, which shows up in the IDE as New
Macros. I dutifully saved via cut'n'paste all the code from New
Macros in text files so that it would be easy to revert back to a
previous version of Normal.dot.

Now I'm getting a bunch of grief anyway, and restoring to a previous
New Macros state doesn't help. When I right click on Word's regular
toolbar to see what toolbars are available, MacroXToolbar is listed
numerous times. All these dupe toolbars are there even if I
completely comment out all the code I was using in
Normal.dot/NewMacros.

I clicked on: Tools ===> Customize ===> Toolbars tab, and then
scrolled down and deleted every occurrence of MacroXToolbar. That
worked while I was in the Word document, but as soon as I exited and
restarted Word, they were all back again. I even tried uninstalling
and reinstalling Word. No luck.

I get the k'zillion MacroXToolbars even if all the code I was using is
completely removed from New Macros, so obviously these multiple
nuisance toolbars are saved somewhere where I didn't realize I was
saving them.

If I hit Tools ===> Templates and Add-ins and then uncheck everything
there, I STILL get the phantom MacroXToolbars. And, btw, if I bring
up one of these toolbars and then click on it, nothing happens, which
is to be expected since I've commented out all the code.

Obviously there's something I'm missing. I inadvertently created this
monster, and would be very grateful for any tips offered on how to
slay it.
 
J

Jezebel

Hard to tell what's going wrong without seeing the code.

1. Unless you flag the toolbar as temporary (it's an argument to
CommandBars.Add) then each time you run the code you're adding a new
toolbar.

2. Toolbars are customizations of a template or document. If you're adding
the template manually, it's the 'Save in' option on the Customize dialog. In
VBA it's the CustomizationContext setting.
 

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