Presentation.ApplyTheme 方法 (PowerPoint)

會將佈景主題或簡報設計範本套用至指定的簡報。

語法

expressionApplyTheme( _themeName_ )

表達 代表 Presentation 物件的變數。

參數

名稱 必要/選用 資料類型 描述
themeName 必要 String 路徑和佈景主題檔案 (.thmx) 或將套用至 Presentation 物件的設計範本檔案 (.pot) 的名稱。

範例

在這個範例中,會將已儲存的佈景主題套用至使用中的簡報:

ActivePresentation.ApplyTheme "C:\Program Files\Microsoft Office\Templates\MyTheme.thmx"

在這個範例中,會將已儲存的簡報設計範本套用至使用中的簡報:

ActivePresentation.ApplyTheme "C:\Program Files\Microsoft Office\Templates\MyTheme.pot"

另請參閱

Presentation 物件

支援和意見反應

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