Skip to content

Files

Latest commit

 

History

History
69 lines (37 loc) · 1.42 KB

PowerPoint.Presentation.Application.md

File metadata and controls

69 lines (37 loc) · 1.42 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Presentation.Application property (PowerPoint)
vbapp10.chm583001
vbapp10.chm583001
PowerPoint.Presentation.Application
6427124b-ed76-676f-b1e9-113e82f20754
06/08/2017
medium

Presentation.Application property (PowerPoint)

Returns an Application object that represents the creator of the specified object.

Syntax

expression.Application

expression A variable that represents a Presentation object.

Return value

Application

Example

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

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

Presentation Object

[!includeSupport and feedback]