使用vba将ppt转换为pdf [英] convert ppt to pdf using vba

查看:463
本文介绍了使用vba将ppt转换为pdf的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法将ppt转换成pdf格式。请帮助找到方法。







i am not able to convert ppt into pdf format.please help to find a way.



Sub ppttopdf(control As IRibbonControl)
Dim lngFirst As Long
Dim lngSecond As Long
Dim strPath As String
Dim ipos As Integer
If ActivePresentation.path = "" Then
MsgBox "Save me first"
Exit Sub
End If


strPath = "D:\macro" & ActivePresentation.Name & ".pdf"



ActivePresentation.ExportAsFixedFormat path:=strPath, FixedFormatType:=ppFixedFormatTypePDF
MsgBox "saved......"
End Sub

推荐答案

您已在使用VBA代码将ppt保存为pdf [ ^ ]。请不要重新发布;如果您要添加信息,请编辑原文。
You already posted this question at save ppt as pdf using VBA code[^]. Please do not repost; if you have information to add then edit your original.


这篇关于使用vba将ppt转换为pdf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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