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.