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

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.

-Tom


- 16 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.

    -Tom

    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

    Teddy,

    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.

    -Tom

    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.

    Thanks

    Anthony

    14 Jun 2013, 02:34

  6. Thomas Nichols

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

    Tom

    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”)) {
    LoadOtl();
    parent.gOtlLoaded = true;
    var btn = new TxtBtn(
    “nb_otl”, “nb_otlElem”, parent.ToggleOtlPane, GetOtlState);
    if (btn != null) {
    btn.SetPressed();
    btn.Perform();
    };
    return
    }
    if (g_supportsPPTHTML) {
    if (IsWin(“PPTNav”)) {
    LoadNav(“NavObj”, UpdNav);
    parent.gNavLoaded = true;
    return
    }
    if (IsWin(“PPTOtlNav”)) {
    LoadNav(“OtlNavObj”, UpdOtlNav);
    parent.gOtlNavLoaded = true;
    return
    }
    };
    }
    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.

    Thanks

    Anthony

    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.
    -Tom

    25 Oct 2013, 17:45

  11. Michael

    Hi,
    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.

    w/regards
    Michael

    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

    w/regards
    Michael

    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


Add a comment

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


Your IP address will be recorded. -

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

Search this blog

Tags

Most recent comments

  • @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
  • 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

Blog archive

Loading…
Not signed in
Sign in

Powered by BlogBuilder
© MMXVII