P
PBJ
In a protected Word form, I have three pairs of FormField check boxes: Check4
and Check14; Check 5 and Check15; and Check6 and Check16. I need to program
them so that, for each pair, if one is checked by a user, its counterpart
becomes checked as well automatically. The set-up needs to be fully
reciprocal, so that as soon as a user checks EITHER box in a pair, the other
one will follow suit. If Check4 is checked, for example, the macro needs to
check Check14. If a few minutes later, the user decides to uncheck Check14,
Check4 needs to uncheck, too.
I've tried macros like the following for a single pair of boxes:
Sub MirrorCheck()
With ActiveDocument
If .FormFields("Check4").CheckBox.Value = True Then
..FormFields("Check14").CheckBox.Value = True
Else
..FormFields("Check14").CheckBox.Value = False
End If
End With
End Sub
But I have no idea A) how to make even this macro fully reciprocal, or B)
how to get the other pairs of boxes involved without writing three separate
macros. Is what I want to do even possible? I'm totally stumped. Help!
and Check14; Check 5 and Check15; and Check6 and Check16. I need to program
them so that, for each pair, if one is checked by a user, its counterpart
becomes checked as well automatically. The set-up needs to be fully
reciprocal, so that as soon as a user checks EITHER box in a pair, the other
one will follow suit. If Check4 is checked, for example, the macro needs to
check Check14. If a few minutes later, the user decides to uncheck Check14,
Check4 needs to uncheck, too.
I've tried macros like the following for a single pair of boxes:
Sub MirrorCheck()
With ActiveDocument
If .FormFields("Check4").CheckBox.Value = True Then
..FormFields("Check14").CheckBox.Value = True
Else
..FormFields("Check14").CheckBox.Value = False
End If
End With
End Sub
But I have no idea A) how to make even this macro fully reciprocal, or B)
how to get the other pairs of boxes involved without writing three separate
macros. Is what I want to do even possible? I'm totally stumped. Help!