Share via


LinkFormat.AutoUpdate Property (Word)

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

Syntax

expression .AutoUpdate

expression A variable that represents a LinkFormat object.

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

See Also

Concepts

LinkFormat Object Members

LinkFormat Object