Table of contents
TOC
Collapse the table of content
Expand the table of content

Presentation.TemplateName Property (PowerPoint)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Returns the name of the design template associated with the specified presentation. Read-only.

Syntax

expression. TemplateName

expression A variable that represents a Presentation object.

Return Value

String

Remarks

The returned string includes the MS-DOS file name extension (for file types that are registered) but doesn't include the full path.

Example

The following example applies the design template Professional.pot to the presentation Pres1.ppt if it is not already applied to it.

With Presentations("Pres1.ppt")
    If .TemplateName <> "Professional.pot" Then
        .ApplyTemplate "c:\program files\microsoft office" &; _
            "\templates\presentation designs\Professional.pot"
    End If
End With

See also

Concepts

Presentation Object

© 2018 Microsoft