A
Andrew Glennie
Hi All,
I have a Word template on which there is a group of 3 checkboxes. I would
like to prevent users from checking more than one of the group (like an
option group). I thought this code might work, but it does only part of the
time...
If ActiveDocument.FormFields("SectionE1").CheckBox.Value = True Then
ActiveDocument.FormFields("SectionE2").CheckBox.Value = False
ActiveDocument.FormFields("SectionE3").CheckBox.Value = False
ElseIf ActiveDocument.FormFields("SectionE2").CheckBox.Value = True Then
ActiveDocument.FormFields("SectionE1").CheckBox.Value = False
ActiveDocument.FormFields("SectionE3").CheckBox.Value = False
ElseIf ActiveDocument.FormFields("SectionE3").CheckBox.Value = True Then
ActiveDocument.FormFields("SectionE1").CheckBox.Value = False
ActiveDocument.FormFields("SectionE2").CheckBox.Value = False
End If
Any ideas how I might make this work?
Regards
Andrew
I have a Word template on which there is a group of 3 checkboxes. I would
like to prevent users from checking more than one of the group (like an
option group). I thought this code might work, but it does only part of the
time...
If ActiveDocument.FormFields("SectionE1").CheckBox.Value = True Then
ActiveDocument.FormFields("SectionE2").CheckBox.Value = False
ActiveDocument.FormFields("SectionE3").CheckBox.Value = False
ElseIf ActiveDocument.FormFields("SectionE2").CheckBox.Value = True Then
ActiveDocument.FormFields("SectionE1").CheckBox.Value = False
ActiveDocument.FormFields("SectionE3").CheckBox.Value = False
ElseIf ActiveDocument.FormFields("SectionE3").CheckBox.Value = True Then
ActiveDocument.FormFields("SectionE1").CheckBox.Value = False
ActiveDocument.FormFields("SectionE2").CheckBox.Value = False
End If
Any ideas how I might make this work?
Regards
Andrew