Check Boxes

G

Guest

I want to use an "If" field in a document to control
whether or not certain text is displayed based on the
state of a checkbox in the same document. The expression
{IF ActiveDocument.FormFields("Check1").CheckBove.Value =
True "truetext" "falsetext" \* MERGEFORMAT}doesn't work.
Any thoughts . . .
 
C

Charles Kenyon

You are confusing (I think) formfields with vba. Formfields don't use the
construction "ActiveDocument..." Formfields are designated by bookmarks
which are set in the formfield's properties.

I use checkbox formfields in one of my forms to control the display of
certain text by using an on-exit macro. Send me an email and I'll send you a
copy that might help you with coding what you want. (It is my subpoena
form.)

--

Charles Kenyon

See also the MVP FAQ: <URL: 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.
 
G

Guest

Thanks very much for the reply. I have considered using
an on exit macro, but I am so comfortable with the "if"
fields that I like to sprinkle them throughout the
document, creating multiple references or taking multiple
actions based on the contents of a bookmark. I was
hoping that since formfields are bookmarked
automatically, there would be a way to reference them as
I do other bookmarked words and phrases. I would be very
interested in seeing your forms. <[email protected].
 
C

Cindy M -WordMVP-

I have considered using
an on exit macro, but I am so comfortable with the "if"
fields that I like to sprinkle them throughout the
document, creating multiple references or taking multiple
actions based on the contents of a bookmark. I was
hoping that since formfields are bookmarked
automatically, there would be a way to reference them as
I do other bookmarked words and phrases.
Unfortunately, IF fields can't "see" form field checkboxes,
so I think you will need to use a macro in this case.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep
30 2003)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:)
 
G

Guest

Thanks for the reply. This is the same conclusion I am
coming to after many frustrating hours. It seems like a
design lapse for conditional fields not to be able to
react to the state of a form checkbox. Oh well . . .
 
C

Charles Kenyon

REF fields won't copy them, either. Its a pain.

Hope the template I sent you is useful. You may want to cancel your previous
message with your email address in it to cut down on spam receipt.
--

Charles Kenyon

Word New User FAQ & Web Directory:
<URL: http://addbalance.com/word/index.htm>

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide)
<URL: http://addbalance.com/usersguide/index.htm>

See also the MVP FAQ: <URL: 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.
 

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