Table of contents
TOC
折叠目录
展开目录

Presentation.SaveCopyAs 方法 (PowerPoint)Presentation.SaveCopyAs Method (PowerPoint)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

在不修改原文件的情况下将指定演示文稿的副本保存至另一文件。Saves a copy of the specified presentation to a file without modifying the original.

语法Syntax

表达式副本另存为(文件名文件格式EmbedTrueTypeFonts )expression. SaveCopyAs( FileName, FileFormat, EmbedTrueTypeFonts )

表达式_一个表示演示文稿对象的变量。_expression A variable that represents a Presentation object.

参数Parameters

名称Name必需/可选Required/Optional数据类型Data Type说明Description
文件名FileName必需RequiredStringString指定文件的保存名称。如果不指定完整路径,PowerPoint 会将该文件保存于当前文件夹中。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可选OptionalPpSaveAsFileTypePpSaveAsFileType文件格式。The file format.
EmbedTrueTypeFontsEmbedTrueTypeFonts可选OptionalMsoTriStateMsoTriState指定是否嵌入 TrueType 字体。Specifies whether TrueType fonts are embedded.

注解Remarks

文件格式_参数值可以是其中一个PpSaveAsFileType常量。默认值为ppSaveAsDefaultThe _FileFormat parameter value can be one of these PpSaveAsFileType constants. The default is ppSaveAsDefault.

|| |:-----| |ppSaveAsHTMLv3ppSaveAsHTMLv3| |ppSaveAsAddInppSaveAsAddIn| |ppSaveAsBMPppSaveAsBMP| |ppSaveAsDefaultppSaveAsDefault| |ppSaveAsGIFppSaveAsGIF| |ppSaveAsHTMLppSaveAsHTML| |ppSaveAsHTMLDualppSaveAsHTMLDual| |ppSaveAsJPGppSaveAsJPG| |ppSaveAsMetaFileppSaveAsMetaFile| |ppSaveAsPNGppSaveAsPNG| |ppSaveAsPowerPoint3ppSaveAsPowerPoint3| |ppSaveAsPowerPoint4ppSaveAsPowerPoint4| |ppSaveAsPowerPoint4FarEastppSaveAsPowerPoint4FarEast| |ppSaveAsPowerPoint7ppSaveAsPowerPoint7| |ppSaveAsPresentationppSaveAsPresentation| |ppSaveAsRTFppSaveAsRTF| |ppSaveAsShowppSaveAsShow| |ppSaveAsTemplateppSaveAsTemplate| |ppSaveAsTIFppSaveAsTIF| |ppSaveAsWebArchiveppSaveAsWebArchive| EmbedTrueTypeFonts_参数值可以是其中一个MsoTriState常量。The _EmbedTrueTypeFonts parameter value can be one of these MsoTriState constants.

常量Constant说明Description
msoFalsemsoFalse不嵌入 TrueType 字体。TrueType fonts are not embedded.
msoTriStateMixedmsoTriStateMixed嵌入的字体是 TrueType 和非 TrueType 的组合。默认值。Embedded fonts are a mixture of TrueType and non-TrueType. The default.
属性值为 msoTruemsoTrue嵌入 TrueType 字体。TrueType fonts are embedded.

示例Example

本示例以文件名“New Format Copy.ppt”保存当前演示文稿的一个副本。默认情况下,该副本以当前版本的 PowerPoint 演示文稿格式保存,然后以文件名“Old Format Copy”另存为 PowerPoint 4.0 格式文件。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

另请参阅See also

概念Concepts

演示文稿对象Presentation Object

© 2018 Microsoft