Commandline switch/macro for Powerpoint 2010

时光毁灭记忆、已成空白 提交于 2019-12-13 04:09:52

问题


Is there a switch or a general macro (that can be applied to any ppt file) to save a ppt file to png files?


回答1:


No, there is no commandline switch for this. There are two possible options with switches though, one is /M (macro), which means you can run a macro in your PPTX (and that macro could save to .PNG) or /PT (print to) and print to OneNote (if you have it) and those images will be PNG. See Command-line switches for PowerPoint 2007 (which are the same as 2010) for more details.

A macro would look like this:

Sub PrintToPng()
    Dim ap As Presentation: Set ap = ActivePresentation
    ap.SaveAs ap.Path & "\" & "new", ppSaveAsPNG
End Sub

This will save each slide as it's own PNG in a subfolder named "new" at the same folder where the presentation was saved.



来源:https://stackoverflow.com/questions/5216050/commandline-switch-macro-for-powerpoint-2010

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!