返回或设置更新链接的方法。可读写。PpUpdateOption 类型。
PpUpdateOption 可以是下列 PpUpdateOption 类型常数之一。 |
ppUpdateOptionAutomatic 每次打开演示文稿或源文件更改时更新链接。 |
ppUpdateOptionManual 仅当用户特别要求更新演示文稿时更新链接。 |
ppUpdateOptionMixed |
expression.AutoUpdate
expression 必选。该表达式返回“应用于”列表中的对象之一。
本示例搜索当前演示文稿中所有幻灯片的所有形状,并将所有链接的 Microsoft Excel 工作表设为手动更新。
For Each sld In ActivePresentation.Slides
For Each sh In sld.Shapes
If sh.Type = msoLinkedOLEObject Then
If sh.OLEFormat.ProgID = "Excel.Sheet" Then
sh.LinkFormat.AutoUpdate = ppUpdateOptionManual
End If
End If
Next
Next