title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
Presentation.SaveAs method (PowerPoint) |
vbapp10.chm583036 |
|
|
d70a678b-66ed-9dd6-5a5e-454cdf808784 |
08/02/2022 |
medium |
Saves a presentation that's never been saved, or saves a previously saved presentation under a different name.
expression.SaveAs (FileName, FileFormat, EmbedFonts)
expression A variable that represents a Presentation object.
Name | Required/Optional | Data type | Description |
---|---|---|---|
FileName | Required | String | Specifies the name to save the file under. If you don't include a full path, PowerPoint saves the file in the current folder. |
FileFormat | Optional | PpSaveAsFileType | Specifies the saved file format. If this argument is omitted, the file is saved in the default file format (ppSaveAsDefault). |
EmbedFonts | Optional | MsoTriState | Specifies whether PowerPoint embeds TrueType fonts in the saved presentation. |
The FileFormat parameter value can be one of these PpSaveAsFileType constants. The default is ppSaveAsDefault. For a complete list of constants, see PpSaveAsFileType Enumeration.
ppSaveAsAddIn |
ppSaveAsBMP |
ppSaveAsDefault |
ppSaveAsEMF |
ppSaveAsExternalConverter |
ppSaveAsGIF |
ppSaveAsJPG |
ppSaveAsMetaFile |
ppSaveAsMP4 |
ppSaveAsOpenDocumentPresentation |
ppSaveAsOpenXMLAddin |
ppSaveAsOpenXMLPicturePresentation |
ppSaveAsOpenXMLPresentation |
ppSaveAsOpenXMLPresentationMacroEnabled |
ppSaveAsOpenXMLShow |
ppSaveAsOpenXMLShowMacroEnabled |
ppSaveAsOpenXMLTemplate |
ppSaveAsOpenXMLTemplateMacroEnabled |
ppSaveAsOpenXMLTheme |
ppSaveAsPDF |
ppSaveAsPNG |
ppSaveAsPresentation |
ppSaveAsRTF |
ppSaveAsShow |
ppSaveAsStrictOpenXMLPresentation |
ppSaveAsTemplate |
ppSaveAsTIF |
ppSaveAsWMV |
ppSaveAsXMLPresentation |
ppSaveAsXPS |
The EmbedFonts parameter value can be one of these MsoTriState constants.
Constant | Description |
---|---|
msoFalse | TrueType fonts are not embedded. |
msoTriStateMixed | Embedded fonts are a mixture of TrueType and non-TrueType. The default. |
msoTrue | TrueType fonts are embedded. |
If the presentation is not fully downloaded, this method fails and an error occurs. For more information about the Partial Documents, see Work with Partial Documents.
This example saves a copy of the active presentation under the name "New Format Copy.ppt." By default, this copy is saved in the format of a presentation in the current version of PowerPoint. The presentation is then saved as a PowerPoint 4.0 file named "Old Format Copy."
With Application.ActivePresentation
.SaveCopyAs "New Format Copy"
.SaveAs "Old Format Copy", ppSaveAsPowerPoint4
End With
[!includeSupport and feedback]