Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Latest commit

 

History

History
71 lines (37 loc) · 1.35 KB

colorscheme-application-property-powerpoint.md

File metadata and controls

71 lines (37 loc) · 1.35 KB
title keywords f1_keywords ms.prod api_name ms.assetid ms.date
ColorScheme.Application Property (PowerPoint)
vbapp10.chm537001
vbapp10.chm537001
powerpoint
PowerPoint.ColorScheme.Application
708a8a21-ec76-ae63-8907-0122050a7666
06/08/2017

ColorScheme.Application Property (PowerPoint)

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

Syntax

expression. Application

expression A variable that represents a ColorScheme 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

Concepts

ColorScheme Object