Toolbars Again

K

klav

1. I have a lot of buttons on my toolbar and I want them all to be visible
all the time. Is there a way to have a custom toolbar displayed on multiple
lines?

2. Is there a way to have the text on my button displayed on two lines so
that the second word on a button is aligned under the first?
 
J

Jonathan West

klav said:
1. I have a lot of buttons on my toolbar and I want them all to be
visible
all the time. Is there a way to have a custom toolbar displayed on
multiple
lines?

Only by having the toobar floating rather than docked
2. Is there a way to have the text on my button displayed on two lines so
that the second word on a button is aligned under the first?

Yes. For each button where you want this, set the button's Style property to
msoButtonWrapCaption. If you want an icon as well as a caption, use
msoButtonIconAndWrapCaption or msoButtonIconAndWrapCaptionBelow instead.

This will result in the toolbar becoming taller to accommodate the height of
2 or more lines of caption.

These options are not available through the Tools Customize user interface,
they can only be set using VBA. Once you have set them in a template, you
can save the template and they will remain. Make sure you have correctly set
the CustomizationContext to your template before making the changes.

--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
 
K

klav

Thanks......very helpful info....

Jonathan West said:
Only by having the toobar floating rather than docked


Yes. For each button where you want this, set the button's Style property to
msoButtonWrapCaption. If you want an icon as well as a caption, use
msoButtonIconAndWrapCaption or msoButtonIconAndWrapCaptionBelow instead.

This will result in the toolbar becoming taller to accommodate the height of
2 or more lines of caption.

These options are not available through the Tools Customize user interface,
they can only be set using VBA. Once you have set them in a template, you
can save the template and they will remain. Make sure you have correctly set
the CustomizationContext to your template before making the changes.

--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
 

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