PowerPoint) (LinkFormat.AutoUpdate 属性

返回或设置更新链接的方法。 读/写。

语法

表达式。AutoUpdate

表达式 表示 LinkFormat 对象的变量。

返回值

PpUpdateOption

备注

自动更新 属性的值可以是其中一个 读 常量。

常量 说明
ppUpdateOptionAutomatic 每次打开演示文稿或更改源文件时更新链接。
ppUpdateOptionManual 仅当用户特别要求更新演示文稿时更新链接。
ppUpdateOptionMixed

示例

本示例浏览活动演示文稿中所有幻灯片的所有形状,并将所有链接的 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

另请参阅

LinkFormat 对象

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。