C
ChristineP
I have a purchase order document with form fields to calculate quantity x
unit price to get an extended price. There is a calculated field at the
bottom called Total that sums all the extended prices above it. If the
TotalPrice is >100, then I want to change a checbox value to true. Here's the
code for the macro:
If ActiveDocument.FormFields("TotalPrice").Result > "100.00" Then
ActiveDocument.FormFields("Finance").CheckBox.Value = True
Else
ActiveDocument.FormFields("Finance").CheckBox.Value = False
End If
Trouble is, the macro can't go into either the ExtenedPrice or Total field's
OnEntry or OnExit event because they are calculated fields that don't get any
focus. Where should the macro go to get it to trigger.
Any speedy help will be appreciated!
unit price to get an extended price. There is a calculated field at the
bottom called Total that sums all the extended prices above it. If the
TotalPrice is >100, then I want to change a checbox value to true. Here's the
code for the macro:
If ActiveDocument.FormFields("TotalPrice").Result > "100.00" Then
ActiveDocument.FormFields("Finance").CheckBox.Value = True
Else
ActiveDocument.FormFields("Finance").CheckBox.Value = False
End If
Trouble is, the macro can't go into either the ExtenedPrice or Total field's
OnEntry or OnExit event because they are calculated fields that don't get any
focus. Where should the macro go to get it to trigger.
Any speedy help will be appreciated!