Edit

Share via


Field.Update method (Word)

Updates the result of the field. Returns True if the field is updated successfully.

Syntax

expression.Update

expression Required. A variable that represents a 'Field' object.

Return value

Boolean

Example

This example updates the first field in the active document. A return value of 1 (True) indicates that the fields were updated without error.

If ActiveDocument.Fields(0).Update = 1 Then 
 MsgBox "Update Successful" 
Else 
 MsgBox "Field " & ActiveDocument.Fields(0).Update & _ 
 " has an error" 
End If

See also

Field Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.