add an icon to the 'views' on the horizontal scrollbar?

J

jimi_hendricks

Hi folks,

I have a macro (Word 2003) which creates a customised view (disabling
certain features, enabling others). Currently I add an item to the View menu
as an additional view alongside Web view, print view, etc to activate the
macro.

Is it possible to add an icon to activate this macro beside the little icons
for the different views on the left of the horizontal scrollbar? I currently
create a custom toolbar to provide an icon for the macro to be enabled, but
it would be neater to fit it in with the other view types.

If this isn't possible, a close second would be to have my custom toolbar
not taking up a whole line of space along the top, is there a property i can
set so that it sits to the right of an existing toolbar?

Kind Thanks,
Jimi Hendricks
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?amltaV9oZW5kcmlja3M=?=,
Is it possible to add an icon to activate this macro beside the little icons
for the different views on the left of the horizontal scrollbar?
AS far as I know, that's not possible. Certainly not with just VBA; whether
something could be "fiddled" using the Windows API, I don't know.
If this isn't possible, a close second would be to have my custom toolbar
not taking up a whole line of space along the top, is there a property i can
set so that it sits to the right of an existing toolbar?
See if the RowIndex property does what you need. Here's an excerpt from the
Help

"RowIndex Property
See AlsoApplies ToExampleSpecificsReturns or sets the docking order of a
command bar in relation to other command bars in the same docking area. Can be
an integer greater than zero, or either of the following MsoBarRow constants:
msoBarRowFirst or msoBarRowLast. Read/write Long.

Remarks
Several command bars can share the same row index, and command bars with lower
numbers are docked first. If two or more command bars share the same row index,
the command bar most recently assigned will be displayed first in its group."

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 :)
 
J

jimi_hendricks

Hi Cindy,

Thanks for your help, I have implemented the RowIndex solution suggested.

Regards,
Scott
 

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