VBA 以讲义 2x2 格式 Office 2007 将演示文稿另存为 PDF [英] VBA save Presentation as PDF in Handout 2x2 format Office 2007

查看:35
本文介绍了VBA 以讲义 2x2 格式 Office 2007 将演示文稿另存为 PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 VBA 保存 PowerPoint 演示文稿,我想将其保存为讲义格式的 .pdf,页面上有 2x2 幻灯片.有人可以告诉我或指向我的链接,告诉我如何去做.我在谷歌上做了功课,但找不到.任何帮助/建议/提示将不胜感激.

I'm trying to save a PowerPoint presentation using VBA, and I want to save it as a .pdf in Handout format with 2x2 slides on a page. Can somebody tell me or point me to a link that tells me how to do it. I've done my homework on Google, but couldn't find it. Any help/suggestions/hints will be appreciated.

我也尝试搜索参考,但我只找到了 ppSaveAsPDF,无论如何都可以从 VBE IntelliSense 访问它.但我不知道如何实现讲义 2x2 部分.

I've tried searching the reference too, but I only reached the ppSaveAsPDF, which is anyway accessible from the VBE IntelliSense. But I don't know how to achieve the handout 2x2 part.

推荐答案

我使用的是 ActivePresentation.SaveAs,它不够强大.这完成了这项工作:http://msdn.microsoft.com/en-us/library/bb231096.aspx

I was using ActivePresentation.SaveAs, which is not powerful enough. This did the job: http://msdn.microsoft.com/en-us/library/bb231096.aspx

Sub CreateHandout()

ActivePresentation.ExportAsFixedFormat "Y:\ml\PDFs\" + Replace(ActivePresentation.name, "pptx", "pdf"), ppFixedFormatTypePDF, ppFixedFormatIntentPrint, msoCTrue, ppPrintHandoutHorizontalFirst, ppPrintOutputFourSlideHandouts, msoFalse, , , , False, False, False, False, False

End Sub

编辑器可帮助您使用 IntelliSense 确定正确的选项.

The editor helps you decide the correct options using IntelliSense.

这篇关于VBA 以讲义 2x2 格式 Office 2007 将演示文稿另存为 PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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