Cross-reference check boxes in on-line form

G

Guest

Is it possible to cross-reference a check box to another check box?

In a protected on-line form, I have a series of summary check boxes. What I
would like is when the summary check box is ticked, this check is then
automatically carried over to the key result area check box.
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?TUc=?=,
Is it possible to cross-reference a check box to another check box?

In a protected on-line form, I have a series of summary check boxes. What I
would like is when the summary check box is ticked, this check is then
automatically carried over to the key result area check box.
Unfortunately, no, there's no way to pick up the state of a checkbox except by
using VBA. You could use a VBA macro that triggers when the user exits a
checkbox to set the state of other, related fields. Example:

Sub SetCheckboxes()
ActiveDocument.FormFields("Check2").CheckBox.Value _
= ActiveDocument.FormFields("Check1").CheckBox.Value
End Sub


Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
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

Hi Cindy

Thanks for the code. Is it possible to adjust the code so I can
cross-reference the result of one checkbox to two checkboxes rather than just
one as the code below allows?
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?TUc=?=,
Is it possible to adjust the code so I can
cross-reference the result of one checkbox to two checkboxes rather than just
one as the code below allows?
Sure, just add an additional "equation" (copy and paste), referencing the other
checkbox name. You can substitute any checkbox names you like for those in my
sample.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
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 :)
 

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