refreshing toolbar

P

Paul Bishop

Some of my VBA code is triggered by a button on the toolbar. The user is
expected to create a new document from a template that includes the button.
The trouble is, the button does not become visible until the user switches to
another document and back, which presumably repaints the toolbar. Is it
possible to avoid requiring this workaround by the user? How can I
explicitly refresh the toolbar so as to make the button appear?
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?UGF1bCBCaXNob3A=?=,
Some of my VBA code is triggered by a button on the toolbar. The user is
expected to create a new document from a template that includes the button.
The trouble is, the button does not become visible until the user switches to
another document and back, which presumably repaints the toolbar. Is it
possible to avoid requiring this workaround by the user? How can I
explicitly refresh the toolbar so as to make the button appear?
First time I can ever remembering hearing something like that... That a toolbar
needs to explicitly be shown (View/Toolbars), yes. But switching back and forth?
Hmmm.

Is it possible that the user has once had a toolbar of this name in their
Normal.dot? Sometimes, Word does odd things if things were created then deleted
in Normal.dot, and the same caption crops up again in another document or
template.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 

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