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 / Menus and Toolbars / May 2005

Tip: Looking for answers? Try searching our database.

How to create a command button like Show/Hide Edit Mark button?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Á÷À˵ÄË«Óã - 27 May 2005 13:21 GMT
Is there a way to create a command button on toolbar
like the Show/Hide Edit Mark button? I want to use it
to toggle between two status.

Any help is appreciated.
Thanks!
Daiya Mitchell - 27 May 2005 14:09 GMT
Yes, there is.  Very possibly the command is already predefined in Word, in
which case you can dig it out of the Tools | Customize dialog:
How to assign a Word command or macro to a toolbar or menu
http://word.mvps.org/faqs/customization/AsgnCmdOrMacroToToolbar.htm

Or you might have to write a macro that toggles, and attach that to an icon.

What did you want to do, specifically?

> Is there a way to create a command button on toolbar
> like the Show/Hide Edit Mark button? I want to use it
> to toggle between two status.
>
> Any help is appreciated.
> Thanks!

Signature

Daiya Mitchell, MVP Mac/Word
Word FAQ: http://www.word.mvps.org/
MacWord Tips: <http://www.word.mvps.org/MacWordNew/>
What's an MVP? A volunteer! Read the FAQ: http://mvp.support.microsoft.com/

Charles Kenyon - 27 May 2005 14:36 GMT
The poster wants a button to toggle states to show which condition is
active.
Signature

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.

> Yes, there is.  Very possibly the command is already predefined in Word,
> in
[quoted text clipped - 13 lines]
>> Any help is appreciated.
>> Thanks!
Daiya Mitchell - 27 May 2005 14:51 GMT
My fault, then.  I don't understand what "states" means.

> The poster wants a button to toggle states to show which condition is
> active.
Charles Kenyon - 27 May 2005 19:03 GMT
The button looks different if (for example) non-printing characters are
displayed. The bold and italics buttons are other examples of toggled
buttons.
Signature

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.

> My fault, then.  I don't understand what "states" means.
>
>> The poster wants a button to toggle states to show which condition is
>> active.
Daiya Mitchell - 27 May 2005 19:19 GMT
Oops.  I thought the OP wanted to use the button to do something.  I think I
do remember seeing a suggestion that some tricky VBA might be able to
accomplish this, though I can't imagine it being worth the time.

> The button looks different if (for example) non-printing characters are
> displayed. The bold and italics buttons are other examples of toggled
> buttons.
Graham Mayor - 28 May 2005 05:05 GMT
How about setting the buttons state?

myCommandBarButton.State=msoButtonDown
myCommandBarButton.State=msoButtonUp

Signature

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor -  Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

> Oops.  I thought the OP wanted to use the button to do something.  I
> think I do remember seeing a suggestion that some tricky VBA might be
[quoted text clipped - 4 lines]
>> are displayed. The bold and italics buttons are other examples of
>> toggled buttons.
????? - 29 May 2005 05:49 GMT
I want to create a button to change the page tray.Use the default
page tray when the button is up and use the manual tray when down.
The question is how to reference the command button in VBA code.
 
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.