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

[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

  13. MattBianco

    @ Micahel. Bravo. EXCELLENT solution.

    This was so much simpler than saving as HTML and using third party software.

    04 Mar 2016, 18:01

  14. Meri

    @Michael. Thanks!!!

    30 Mar 2016, 20:16

  15. johann beda

    I look this up every couple of years, and always struggle with it, so here are some notes for improved clarity:

    ALT+F11 doesn’t work for me since it invokes some system level stuff with the sound control panel. Fortunately, using the menu command “Tools” -> “Macro” -> “Visual Basic Editor…” does the trick.

    To get out of the editor and back to PowerPoint one needs to select “PowerPoint” -> “Close and Return to Micorsoft PowerPoint” or use the CMD-Q shortcut.

    19 Aug 2016, 14:36

  16. emma riley

    @Michael. You are a SAINT. BLESS.

    02 Feb 2017, 06:33

  17. Rose


    This doesn’t really address the issue at hand (powerpoint to html), but an alternative and very easy option for non techies is to open the presentation in keynote and export directly to html. (File>Export to>HTML).
    PPT drawings with text boxes are best changed to pictures or pdfs before opening the file in keynote so they are faithfully reproduced. Action settings with sound didn’t work, but mostly it was fine for me. All the other action settings and animations were preserved.

    27 Apr 2017, 14:27

  18. Ramjas

    HTML pages are different from PPT. It is possible to convert PPT in HTML page but it will create a problem at a later stage in reloading.
    Toshiba Support

    22 Jun 2017, 08:47

  19. Andrew Fisher

    Hi, Folks, conversion to HTML still works for PPT 2011 under OS 10.10 (as on my computer), with couple of minor tweaks, but wonder if there might be a similar solution for PPT 2016?

    07 Feb 2019, 20:54

Add a comment

Anti-Spam Question
My t-shirt is red. What colour is my t-shirt?
Anti-Spam Answer

Your IP address will be recorded. -

You can not use HTML, but you can use our special markup -

Search this blog


Most recent comments

  • Hi, Folks, conversion to HTML still works for PPT 2011 under OS 10.10 (as on my computer), with coup… by Andrew Fisher on this entry
  • HTML pages are different from PPT. It is possible to convert PPT in HTML page but it will create a p… by Ramjas on this entry
  • Hi This doesn't really address the issue at hand (powerpoint to html), but an alternative and very e… by Rose on this entry
  • @Michael. You are a SAINT. BLESS. by emma riley on this entry
  • I look this up every couple of years, and always struggle with it, so here are some notes for improv… by johann beda on this entry

Blog archive

Not signed in
Sign in

Powered by BlogBuilder