Charles
Wed May 25 10:29:53 CDT 2005
CommandBars.Add builds a toolbar.
Once you have a toolbar in a template you can turn the visible property (or
the enabled property) for that toolbar to true or false.
The original toolbar can be built manually using the Customize toolbox or
using code.
Application.CommandBars("My Toolbar").visible = True
--
Charles Kenyon
Word New User FAQ & Web Directory:
http://addbalance.com/word
Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide)
http://addbalance.com/usersguide
See also the MVP FAQ:
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.
"C Holmes" <CHolmes@discussions.microsoft.com> wrote in message
news:B0BC03F4-3813-450F-A78C-D2DB1E2B46FC@microsoft.com...
> What I find really strange is that to my knowledge the procedure which
> builds
> the toolbar is not being called from anywhere (that I can tell). Yet after
> I
> remove the toolbars, they show up again the next time the document is
> opened.
>
> Is there a better way to create toolbars than how I am doing it by using
> CommandBars.Add????
>
> "Charles Kenyon" wrote:
>
>> Your code is apparently not displaying the toolbar but building it. This
>> is
>> a bug if your template is being saved with the toolbar.
>> --
>> Charles Kenyon
>>
>> Word New User FAQ & Web Directory:
http://addbalance.com/word
>>
>> Intermediate User's Guide to Microsoft Word (supplemented version of
>> Microsoft's Legal Users' Guide)
http://addbalance.com/usersguide
>>
>> See also the MVP FAQ:
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.
>>
>> "C Holmes" <CHolmes@discussions.microsoft.com> wrote in message
>> news:209E93BC-33AE-4022-B9F3-2F754ADF632F@microsoft.com...
>> > I've got some weird things going on with a toolbar that I built in a
>> > word
>> > document.
>> >
>> > For some reason the toolbar is being displayed many times when the
>> > document
>> > opens up. Yet to my knowledge the macro which builds the toolbar is not
>> > being
>> > executed.
>> >
>> > If I right click in the toolbar space at the top of Word (where you can
>> > see
>> > the list of all toolbars) I can see a dozen or so instances of the
>> > toolbar.
>> > If I go to the bottom of the list and click "Customize" I can delete
>> > all
>> > instances of the toolbar and they then do not display. But the next
>> > time I
>> > go
>> > to open up the Word document all instances of the toolbar again are
>> > displayed. It's got me stumped.
>> >
>> > It seems that the toolbar is saved with the word application and not
>> > the
>> > document as when the document is not open, I still see the toolbar.
>> >
>> > Is there a way to have the toolbar stored with the document and not
>> > with
>> > the
>> > Word application? Where/how is the toolbar stored?
>> >
>> > Any information is greatly appreciated.
>> >
>> > Thanks all.
>>
>>
>>