Name related procedures in class Presentation (PowerPoint VBA)

This page presents procedures from class Presentation related to the theme Name: FullName, Name and TemplateName

FullName

Returns the name of the specified add-in or saved presentation, including the path, the current file system separator, and the file name extension.

This property is equivalent to the Path property, followed by the current file system separator, followed by the Name property.

Dim strFullName As String
strFullName = ActivePresentation.FullName

Name

The name of the presentation includes the file name extension (for file types that are registered) but doesn't include its path. You cannot use this property to set the name. Use the SaveAs method to save the presentation under a different name if you need to change the name.

You can use the object's name in conjunction with the Item method to return a reference to the object if the Item method for the collection that contains the object takes a Variant argument. For example, if the value of the Name property for a shape is Rectangle 2, .Shapes("Rectangle 2") returns a reference to that shape.

Dim strName As String
strName = ActivePresentation.Name

TemplateName

Returns the name of the design template associated with the specified presentation.

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

Dim strTemplateName As String
strTemplateName = ActivePresentation.TemplateName