AutoUpdate Property

Microsoft Word Visual Basic

AutoUpdate Property

       

True if the specified link is updated automatically when the container file is opened or when the source file is changed. Read/write Boolean.

Example

This example updates any shapes in the active document that are linked OLE objects if Word isn't set to update links automatically.

Dim shapeLoop as Shape

For Each shapeLoop In ActiveDocument.Shapes
    With shapeLoop
        If .Type = msoLinkedOLEObject Then
            If .LinkFormat.AutoUpdate = False Then 
                .LinkFormat.Update
            End If
        End If
    End With
Next s

This example updates any fields in the active document that aren't updated automatically.

Dim fieldLoop as Field

For Each fieldLoop In ActiveDocument.Fields
    If fieldLoop.LinkFormat.AutoUpdate = False Then _
        fieldLoop.LinkFormat.Update
Next fieldLoop