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

Cell.Application 属性 (PowerPoint)Cell.Application Property (PowerPoint)

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

返回表示指定对象的创建者的Application对象。Returns an Application object that represents the creator of the specified object.

语法Syntax

表达式应用程序expression. Application

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

返回值Return Value

ApplicationApplication

示例Example

在此示例中,演示文稿对象传递给该过程。该过程向演示文稿添加一张幻灯片,然后运行 Microsoft PowerPoint 的位置的文件夹中保存该演示文稿。In this example, a Presentation object is passed to the procedure. The procedure adds a slide to the presentation and then saves the presentation in the folder where Microsoft PowerPoint is running.

Sub AddAndSave(pptPres As Presentation)

    pptPres.Slides.Add 1, 1

    pptPres.SaveAs pptPres.Application.Path &; "\Added Slide"

End Sub

以下示例显示在当前演示文稿的第一张幻灯片上创建每个链接的 OLE 对象的应用程序的名称。This example displays the name of the application that created each linked OLE object on slide one in the active presentation.

For Each shpOle In ActivePresentation.Slides(1).Shapes

    If shpOle.Type = msoLinkedOLEObject Then

        MsgBox shpOle.OLEFormat.Application.Name

    End If

Next

另请参阅See also

概念Concepts

单元格对象Cell Object

© 2018 Microsoft