CalculateOnExit Property Example
This example keeps references to form fields in Form.doc from being automatically updated whenever the form field is exited.
For Each aFField In Documents("Form.doc").FormFields
aFField.CalculateOnExit = False
Next aFField
This example adds a text form field and a REF field in a new document. Whenever text is typed and the Text1 field is exited, the REF field is automatically updated.
With Documents.Add
.FormFields.Add Range:=Selection.Range, _
Type:=wdFieldFormTextInput
.Fields.Add Range:=Selection.Range, _
Type:=wdFieldRef, Text:="Text1"
.FormFields("Text1").CalculateOnExit = True
.Protect Type:=wdAllowOnlyFormFields
End With