ppt Save as HTM or MHT page format

Source: Internet
Author: User
Tags object model

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.