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/