Compartilhar via


Field.Update Method

Word Developer Reference

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 0 (zero) indicates that the fields were updated without error.

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

See Also