Table of contents
TOC
折叠目录
展开目录

OLEFormat.ProgID 属性 (PowerPoint)OLEFormat.ProgID Property (PowerPoint)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

返回指定 OLE 对象的编程标识符 (ProgID)。只读。Returns the programmatic identifier (ProgID) for the specified OLE object. Read-only.

语法Syntax

表达式进程 Idexpression. ProgID

表达式_一个表示OLEFormat对象的变量。_expression A variable that represents a OLEFormat object.

返回值Return Value

StringString

示例Example

本示例搜索当前演示文稿中所有幻灯片上的所有对象,将所有链接的 Microsoft Office Excel 工作表设为手动更新。This example loops through all the objects on all the slides in the active presentation and sets all linked Microsoft Office Excel worksheets to be updated manually.

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

另请参阅See also

概念Concepts

OLEFormat 对象OLEFormat Object

© 2018 Microsoft