位置:首頁 > 軟件操作教程 > 辦公軟件 > PPT > 問題詳情

如何把PowerPoint 2010另存為htm或mht等網(wǎng)頁格式

提問人:周麗平發(fā)布時間:2021-09-16

1. 使用 PowerPoint 2010 開啟 PowerPoint 檔案。

2. 按 Alt + F11 開啟 VBA。

image.png

3. 出現(xiàn) VBA 后,按 Ctrl + G 唿叫 [即時運算] 視窗。

4. 在即時運算中撰寫以下程式碼,其中您必須將 SaveAs后的的內(nèi)容修改為另存新檔的檔案路徑與名稱,輸入后按 Enter 鍵執(zhí)行即可另存新檔為 htm。

ActivePresentation.SaveAs "<Drive>:\users\<username>\desktop\<filename>.htm", ppSaveAsHTML, msoFalse

例如要儲存到 C:\ ,檔案名稱為 TEST.htm,則

ActivePresentation.SaveAs "C:\TEST.htm", ppSaveAsHTML, msoFalse

image.png

5. 將簡報檔匯出成 htm 檔案結(jié)果

image.png

6. 若要儲存為 mht,請在即時運算視窗中輸入以下程式碼,其中您必須將 SaveAs后的的內(nèi)容修改為另存新檔的檔案路徑與名稱

輸入后按 Enter 鍵執(zhí)行即可另存新檔為 mht。

ActivePresentation.SaveAs "<Drive>:\users\<username>\desktop\<filename>.htm", ppSaveAsWebArchive, msoFalse

例如要儲存到 C:\ ,檔案名稱為 TEST.mht,則

ActivePresentation.SaveAs "C:\TEST.mht", ppSaveAsWebArchive, msoFalse

image.png

7. 將簡報檔匯出成 mht 檔案結(jié)果。

image.png


繼續(xù)查找其他問題的答案?

回復(fù)(0)
返回頂部