First, the problem description
In PowerPoint 2010, you don't offer to save new files as HTM and MHT options, but what if you need to convert a simple file into an HTM or MHT Web page format?
Second, the method
You can call PowerPoint object model through a VBA write program to remit the profile to an HTM or mht file, and take the following steps:
1. Open the PowerPoint file with PowerPoint 2010.
2. Press ALT + F11 to start VBA.
3. After VBA, press Ctrl + G to call [the 鉣 window.
4. At the moment, 阒 the fierce 珜 of the suspense, a, where you have to modify the contents of the SaveAs to save the new file of the file path and name, enter the key after the input to save the new file as HTM.
1 |
ActivePresentation.SaveAs "<Drive>:users<username>desktop<filename>.htm" , ppSaveAsHTML, msoFalse |
For example, to save to C: The file name is Test.htm
1 |
ActivePresentation.SaveAs "C:TEST.htm" , ppSaveAsHTML, msoFalse |
5. Bring the simple file into the HTM file results
6. To save as MHT, please Eris 暣 dad Hugh 斎 guanidine sauce A, where you have to modify the contents of the SaveAs to save the new file path and name
When you press Enter after the input, you can save the new file as MHT.
1 |
ActivePresentation.SaveAs "<Drive>:users<username>desktop<filename>.htm" , ppSaveAsWebArchive, msoFalse |
For example, to save to C: The file name is TEST.MHT
1 |
ActivePresentation.SaveAs "C:TEST.mht" , ppSaveAsWebArchive, msoFalse |
7. Bring the simple file into the MHT file.
Third, related reference and link
The "Save as" dialog box does not have the. htm and the-mht file type option in PowerPoint 2010