Path Property

Microsoft PowerPoint Visual Basic

Path Property

       

Returns a String that represents the path to the specified AddIn, Application, or Presentation object or the path followed by a MotionEffect object. Read-only.

expression.Path

expression   Required. An expression that returns one of the objects in the Applies To list.

Remarks

If you use this property to return a path for a presentation that has not been saved, it returns an empty string. Using this property to return the path for an add-in that has not been loaded causes an error.

The path doesn't include the final backslash (\) or the name of the specified object. Use the Name property of the Presentation object to return the file name without the path, and use the FullName property to return the file name and the path together.

The String returned for a MotionEffect object is a specific path that the motion effect follows between From and To using the same syntax as the VML path description.

Example

This example saves the active presentation in the same folder as PowerPoint.
With Application
    fName = .Path & "\test presentation"
    ActivePresentation.SaveAs fName
End With