Buttons with macros

J

João Correia

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
 
H

Helmut Weber

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/
 

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