如果该属性值为 True,则在打开容器文件或更改源文件时,自动更新指定的链接。Boolean 类型,可读写。
本示例实现的功能是:如果未将 Word 设置为自动更新链接,则更新活动文档中所有以 OLE 对象形式链接的图形。
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
本示例更新活动文档中未被自动更新的域。
Dim fieldLoop as Field
For Each fieldLoop In ActiveDocument.Fields
If fieldLoop.LinkFormat.AutoUpdate = False Then _
fieldLoop.LinkFormat.Update
Next fieldLoop