AutoUpdate 属性

       

返回或设置更新链接的方法。可读写。PpUpdateOption 类型。

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