Mutually Exclusive Check Boxes

T

TechWriter

In Word forms, can check box selections be made mutually exclusive? Meaning,
if I check one box, the other check boxes are deselected.
 
G

Graham Mayor

At its simplest, the following macro run on exit from Check1 will set Check2
& 3 false if Check1 is true.
You can run similar macros from each field to set the values of the others.

Sub isChecked()
With ActiveDocument
If .FormFields("Check1").CheckBox.Value = True Then
.FormFields("Check2").CheckBox.Value = False
.FormFields("Check3").CheckBox.Value = False
End If
End With
End Sub

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

If you want to be more adventurous see
http://word.mvps.org/faqs/tblsfldsfms/exclusivefmfldchbxscontent.htm

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


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

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