J
Jesse
I have a word form that contains two checkboxes (yes and
no) and a third field that requires user input into a text
field if the "No" checkbox is marked. I am using the
following macro that allows the user to mark either Yes or
No only and named the fields PentiumA and PentiumB
respectively:
Set vPentiumA = ActiveDocument.FormFields
("PentiumA").CheckBox
Set vPentiumB = ActiveDocument.FormFields
("PentiumB").CheckBox
If vPentiumA.Value = True Then
vPentiumB.Value = False
End If
End Sub
I want to add a statement to this macro that will prevent
the user from adding text to the text field (named
PentiumC) when the checkbox is marked Yes.
Being relatively new to macros I can't figure out the code
required to get there. Can anyone help?
Thanks
no) and a third field that requires user input into a text
field if the "No" checkbox is marked. I am using the
following macro that allows the user to mark either Yes or
No only and named the fields PentiumA and PentiumB
respectively:
Set vPentiumA = ActiveDocument.FormFields
("PentiumA").CheckBox
Set vPentiumB = ActiveDocument.FormFields
("PentiumB").CheckBox
If vPentiumA.Value = True Then
vPentiumB.Value = False
End If
End Sub
I want to add a statement to this macro that will prevent
the user from adding text to the text field (named
PentiumC) when the checkbox is marked Yes.
Being relatively new to macros I can't figure out the code
required to get there. Can anyone help?
Thanks