Powerpoint 2010的命令行开关/宏 [英] Commandline switch/macro for Powerpoint 2010

查看:570
本文介绍了Powerpoint 2010的命令行开关/宏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有开关或一般的宏(可以应用于任何ppt文件)将ppt文件保存到png文件?

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

推荐答案

不,没有命令行开关。虽然有两个可能的选项,一个是 / M (宏),这意味着你可以在你的PPTX中运行一个宏(该宏可以保存为.PNG)或 / PT (打印到)并打印到OneNote(如果有),那些图像将是PNG。请参阅 PowerPoint 2007的命令行开关(与2010相同)了解更多详情。

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.

宏将如下所示:

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

这会将每个幻灯片保存为自己的PNG在保存演示文稿的同一文件夹中命名为new的子文件夹。

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

这篇关于Powerpoint 2010的命令行开关/宏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆