P
Poli
I have CheckBox "Check1" and a FormField "Duration". My macro is supposr to
put "48.6" in the FormField "Duration" when the checkbox has a check, and
when the checkbox is empty "Duration" will also be empty.
Windows XP, Word 2007
Can someone help me with this macro. The error message says "Block if
without end If"
My 'Check1" checkbox is suppose to run the macros on enter.
Here is my macro
Sub IsChecked()
If ActiveDocument.FormFields("Check1").CheckBox.Value = True Then
ActiveDocument.FormFields("Duration").Result = "48.6"
Else
If ActiveDocument.FormFields("Check1").CheckBox.Value = False Then
ActiveDocument.FormFields("Duration").Result = ""
End If
End Sub
put "48.6" in the FormField "Duration" when the checkbox has a check, and
when the checkbox is empty "Duration" will also be empty.
Windows XP, Word 2007
Can someone help me with this macro. The error message says "Block if
without end If"
My 'Check1" checkbox is suppose to run the macros on enter.
Here is my macro
Sub IsChecked()
If ActiveDocument.FormFields("Check1").CheckBox.Value = True Then
ActiveDocument.FormFields("Duration").Result = "48.6"
Else
If ActiveDocument.FormFields("Check1").CheckBox.Value = False Then
ActiveDocument.FormFields("Duration").Result = ""
End If
End Sub