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 / November 2004

Tip: Looking for answers? Try searching our database.

Buttons with macros

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
João Correia - 05 Nov 2004 13:28 GMT
Hi, I have a template with two buttons. One, runs a macro
that marks the checkbox "field codes"
(tools|options|view|field codes).
The other one does exactly the opposite (unmarks the
checkbox).
I'd like to use a single button to do these two
operations but I don't know if it's possible (I'd guess
it is...)
Can somebody give me a hand?

Thanks,

João
Helmut Weber - 05 Nov 2004 14:42 GMT
Hi João,
With ActiveWindow.View
  .ShowFieldCodes = Not .ShowFieldCodes
End With
---
Same principle applies to all (or most) toggle switches.
---
Greetings from Bavaria, Germany
Helmut Weber, MVP
"red.sys" & chr(64) & "t-online.de"
Word XP, Win 98
http://word.mvps.org/

Rate this thread:






 
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.