PowerPoint) (Presentation.SaveCopyAs 方法

會將指定簡報的複本儲存為檔案,但不會修改原來的簡報。

語法

expression。 SaveCopyAs( _FileName_, _FileFormat_, _EmbedTrueTypeFonts_ )

運算式 代表 Presentation 物件的變數。

參數

名稱 必要/選用 資料類型 描述
FileName 必要 String 會指定儲存時所用的檔案名稱。 如果沒有包含完整路徑,PowerPoint 會將檔案儲存在目前的資料夾中。
FileFormat 選用 PpSaveAsFileType 檔案格式。
EmbedTrueTypeFonts 選用 MsoTriState 會指定是否要內嵌 TrueType 字型。

註解

FileFormat 參數值可以是其中一個 PpSaveAsFileType 常數。 預設值為 ppSaveAsDefault 。

ppSaveAsHTMLv3
ppSaveAsAddIn
ppSaveAsBMP
ppSaveAsDefault
ppSaveAsGIF
ppSaveAsHTML
ppSaveAsHTMLDual
ppSaveAsJPG
ppSaveAsMetaFile
ppSaveAsPNG
ppSaveAsPowerPoint3
ppSaveAsPowerPoint4
ppSaveAsPowerPoint4FarEast
ppSaveAsPowerPoint7
ppSaveAsPresentation
ppSaveAsRTF
ppSaveAsShow
ppSaveAsTemplate
ppSaveAsTIF
ppSaveAsWebArchive

EmbedTrueTypeFonts 參數值可以是其中一個 MsoTriState 常數。

常數 描述
msoFalse TrueType 字型不會內嵌。
msoTriStateMixed 內嵌字型為 TrueType 和非 TrueType 的混合。 預設值。
msoTrue TrueType 字型會內嵌。

如果簡報未完整下載,此方法會失敗並發生錯誤。 如需有關部分文件的詳細資訊,請參閱 使用部分文件。

範例

此範例會以「新格式 Copy.ppt」的名稱儲存使用中簡報的複本。根據預設,此複本會以目前版本 PowerPoint 中的簡報格式儲存。 然後將簡報儲存為名為「舊格式副本」的 PowerPoint 4.0 檔案。

With Application.ActivePresentation

    .SaveCopyAs "New Format Copy"

    .SaveAs "Old Format Copy", ppSaveAsPowerPoint4

End With

另請參閱

Presentation 物件

使用部分文件

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。