Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / June 2005

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jimi_hendricks - 06 Jun 2005 13:01 GMT
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
Cindy M  -WordMVP- - 09 Jun 2005 10:28 GMT
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 :-)
jimi_hendricks - 10 Jun 2005 11:36 GMT
Hi Cindy,

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

Regards,
Scott

> Hi =?Utf-8?B?amltaV9oZW5kcmlja3M=?=,
>
[quoted text clipped - 29 lines]
> This reply is posted in the Newsgroup; please post any follow question or reply
> in the newsgroup and not by e-mail :-)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.