Check the Path property of the Presentation object before using the Save method if you need to determine whether the presentation has been saved : ActivePresentation « PowerPoint « VBA / Excel / Access / Word






Check the Path property of the Presentation object before using the Save method if you need to determine whether the presentation has been saved

 
Sub saveAs()
    If ActivePresentation.Path = "" Then
        ActivePresentation.SaveAs FileName:="C:\C.ppt"
    Else
        ActivePresentation.Save
    End If
End Sub

 








Related examples in the same category

1.Working with the Active Presentation
2.Closing a Window
3.Use the Save method to save a presentation before closing its last window
4.Saving a Copy of a Presentation