| title | Presentation.SaveCopyAs2 method (PowerPoint) | |
|---|---|---|
| description | Saves a copy of the specified presentation to a file without modifying the original. | |
| keywords | vbapp10.chm583135 | |
| f1_keywords |
|
|
| api_name |
|
|
| ms.author | lindalu | |
| ms.date | 08/02/2022 | |
| ms.localizationpriority | medium |
Saves a copy of the specified presentation to a file without modifying the original.
expression. SaveCopyAs2( _FileName_, _FileFormat_, _EmbedTrueTypeFonts_, _ReadOnlyRecommended_ )
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 | The file format. |
| EmbedTrueTypeFonts | Optional | MsoTriState | Specifies whether TrueType fonts are embedded. |
| ReadOnlyRecommended | Optional | MsoTriState | Specifies whether the file should be marked as ReadOnlyRecommended. |
The FileFormat parameter value can be one of these PpSaveAsFileType constants. The default is ppSaveAsDefault.
| ppSaveAsHTMLv3 |
| ppSaveAsAddIn |
| ppSaveAsBMP |
| ppSaveAsDefault |
| ppSaveAsGIF |
| ppSaveAsHTML |
| ppSaveAsHTMLDual |
| ppSaveAsJPG |
| ppSaveAsMetaFile |
| ppSaveAsPNG |
| ppSaveAsPowerPoint3 |
| ppSaveAsPowerPoint4 |
| ppSaveAsPowerPoint4FarEast |
| ppSaveAsPowerPoint7 |
| ppSaveAsPresentation |
| ppSaveAsRTF |
| ppSaveAsShow |
| ppSaveAsTemplate |
| ppSaveAsTIF |
| ppSaveAsWebArchive |
The EmbedTrueTypeFonts 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. |
The ReadOnlyRecommended parameter value can be one of these MsoTriState constants.
| Constant | Description |
|---|---|
| msoFalse | The new file is not marked as ReadOnlyRecommended. |
| msoTriStateMixed | The new file will have the same ReadOnlyRecommended state as the original. The default. |
| msoTrue | The new file will be marked as ReadOnlyRecommended. |
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 File.pptx" while removing the ReadOnlyRecommended flag.
With Application.ActivePresentation
.SaveCopyAs2 "New File", ppSaveAsDefault, msoTriStateMixed, msoFalse
End With[!includeSupport and feedback]