check boxes

S

SHARON

I have a form in Word 07 with multiple check boxes.

I would like to check one box, and automatically have another check box get
a check, instead of manually checking the 2nd one, which leaves room for
human error. There are 2 instances of this on my form. Hope this make
sense.
 
G

Graham Mayor

For that you would need a macro run on exit from the first check box field
(here Check1) to set the value of the second (here Check2) as follows

If ActiveDocument.FormFields("Check1").CheckBox.Value = True Then
ActiveDocument.FormFields("Check2").CheckBox.Value = True
Else
ActiveDocument.FormFields("Check2").CheckBox.Value = False
End If


--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
G

Graham Mayor

Hah! I'd forgotten that one - which is probably even simpler :)

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
S

SHARON

Graham/Jay...

Thank you both for your feedback, unfortuantely i don't know much about
macros....is there any chance you could reply back with the way i would
create this macro, right from step 1?
 
D

Doug Robbins - Word MVP

See the following page of fellow MVP Graham Mayor's website:

http://www.gmayor.com/installing_macro.htm

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
 

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