TemplateName Property

Applies To

Presentation object.

Description

Returns the name of the design template associated with the specified presentation. Read-only 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.

See Also

ApplyTemplate method.

Example

The following example applies the design template Sparkle.pot to the presentation Pres1.ppt if it's not already applied to it.

With Presentations("pres1.ppt")
    If .TemplateName <> "sparkle.pot" Then
        .ApplyTemplate "c:\microsoft office\templates" & _
            "\presentation designs\sparkle.pot"
    End If
End With