November 03, 2011

Save As HTML in Powerpoint 2011 for Mac

Follow-up to Extracting Images from Powerpoint Presentations for (e.g.) LaTeX presentations from Neuroimaging Statistics Tips & Tools

[NOTE: Powerpoint can now do this directly via “Export as…”, and then selecting HTML. Leaving this entry just for reference. -TN 2017/04/27]

Arrrgh. In Powerpoint 2011 for Mac there is no “HTML” option in the “Save as…” dialog.

Fortunately, there is a Microsoft Support note that gives a work around. For convenience (& my memory) here it is distilled:

  1. Press ALT+F11. (Depending on your keyboard settings, you might have to hold down “fn” to get F11.) This will open a “Project” window.
  2. Press CMD+CTRL+G to open the “Immediate” window. (The support page leaves out CMD, the ‘Apple’ key.)
  3. In the “Immediate” window paste in the following:
    ActivePresentation.SaveAs "/tmp/name.htm", ppSaveAsHTML, msoFalse
    Press ENTER.

This will give you a name.htm file and a name_files directory. Of course, you can replace ”/tmp/myfile.htm” with the desired path and filename. However, I find it saves keystrokes to save it into /tmp, and then move the file to wherever you really want it.

While you’ll see the images in the *_files/ folder, disappointingly, I don’t find the same original source images like I have seen before. Again, Arrrgh.


- 19 comments by 1 or more people Not publicly viewable

[Skip to the latest comment]
  1. Andy

    Hi, This was working fine for months. Suddenly, this morning, PPT gives me this error when I try the command above:

    Compile error:
    Expected: end of statement

    Any suggestions out there to get back this functionality? Thanks, Andy

    10 Apr 2013, 20:00

  2. Thomas Nichols

    Huh… I just checked on my system and it still works. Maybe try first copy and pasting the code into a plain-text text editor, making sure there are no invisible characters at the end, and then pasting in to the Immediate window… not sure what else to suggest.


    10 Apr 2013, 23:31

  3. Teddy

    I got errors until I created a total path:

    ActivePresentation.SaveAs “Macintosh HD:\Users\teddy\Desktop\Today\PPT\index.htm”, ppSaveAsHTML, msoFalse

    23 Apr 2013, 20:07

  4. Thomas Nichols


    It works both ways for me (with ”/tmp/ ...” or “Macintosh HD:\...”). I’m on on MacOS 10.6.8… I would have thought /tmp will always be present, but maybe it isn’t on your system for some reason.


    24 Apr 2013, 09:08

  5. Anthony

    Hi guys,

    Once a powerpoint is converted to html when the browser loads up I can see the left outline pane. Is there a way to save the html without the outline being visible when you open it up?

    I want it to open up and display like a webpage.



    14 Jun 2013, 02:34

  6. Thomas Nichols

    Sorry, I’m afraid I have no idea on that!


    14 Jun 2013, 04:47

  7. Anthony

    I actually found the answer!

    When we save PPT as HTML page, the PPT HTML page uses a lots of html pages and JavaScript functions to show the slides in a web browser. When we click “Outline” button, we can be able to show or hide the outline. Actually, this button uses JavaScript to do so.

    In this case, in order to show full page on load, we can simulate the action that clicking the “Outline” button onload.

    1.Open the PPT HTML folder(if we save PPT to HTML, there will be a folder)
    2.Open the file outline.htm with text editor
    3.Modify the Load function to be:
    function Load() {
    if (IsWin(“PPTOtl”)) {
    parent.gOtlLoaded = true;
    var btn = new TxtBtn(
    “nb_otl”, “nb_otlElem”, parent.ToggleOtlPane, GetOtlState);
    if (btn != null) {
    if (g_supportsPPTHTML) {
    if (IsWin(“PPTNav”)) {
    LoadNav(“NavObj”, UpdNav);
    parent.gNavLoaded = true;
    if (IsWin(“PPTOtlNav”)) {
    LoadNav(“OtlNavObj”, UpdOtlNav);
    parent.gOtlNavLoaded = true;
    Once done, the page viewer web part will show the PPT in full page.

    Thought I’d share this here, in case anyone else like me stumbles here from google.



    17 Jun 2013, 07:38

  8. mark m

    @ Anthony: to hide the side frame-

    1. OPEN the frame.htm file in the support files folder in an HTML editor.
    2. change the below percentage (is 20% by default) line in the “document.write” command- to ZERO so it looks like the below:

    function WriteMe() {
    if ( true )
    document.write( ‘

    this essentially “hides” the side frame.

    07 Aug 2013, 19:48

  9. Julie

    This worked like a charm on my mac! Thanks for posting.
    Now I’m trying to get it to work on a Windows PC. At first it couldn’t find the name.html file, but now that i’ve changed that, it just shows a blank screen. Any suggestions?

    25 Oct 2013, 15:28

  10. Thomas Nichols

    Sorry, I only have a Mac… don’t know how it’ll work at on PC.

    25 Oct 2013, 17:45

  11. Michael

    thanx for that, but doesnt work properly on Powerpoint::Mac 2011.

    It saves no Images, but the Slides in gif-format. that´s really not useful.

    The “save as website” as far as I now saves the pure pictures in subfolder.


    01 Dec 2014, 09:51

  12. Michael

    ... better solution:
    - save your ppt as pptx
    - close PP
    - rename your pptx file, give it a new ending: .zip
    - on mac click “use zip”
    - now double-click your new zip and voilà
    - a folder will be extracted

    You find your media in /ppt/media


    01 Dec 2014, 09:55

Add a comment

You are not allowed to comment on this entry as it has restricted commenting permissions.

Search this blog


Most recent comments

  • I love this quote: "Complete reporting of results, i.e. filing of statistical maps in public reposit… by Kevin Black on this entry
  • Taylor: I've just quickly scanned the BrainVoyager documentation, and it appears that the Cluster–Le… by Thomas Nichols on this entry
  • Cindy, I can see you didn't like my comments but I didn't get based on what you deemed them outrageo… by Yolanda on this entry
  • Thomas, Could you comment on the applicability of your findings to BrainVoyager's Cluster–Level Stat… by Taylor on this entry
  • Here is a sample of recent corrections from PNAS, collated by Mike Angstadt. Correction for Crockett… by Thomas Nichols on this entry

Blog archive

Not signed in
Sign in

Powered by BlogBuilder