【发布时间】:2011-04-22 10:02:30
【问题描述】:
我想将 Excel 文件作为 .pdf 文件保存到特定位置,然后通过邮件发送该文件。
我正在使用 Office 2000 :|
这是我目前的代码:
Application.ActivePrinter = "PDF995 on Ne00:"
ActiveSheet.PageSetup.PrintArea = Range("A68").Value
ActiveWindow.SelectedSheets.PrintOut Copies:=1, ActivePrinter:= _
"PDF995 on Ne00:", Collate:=True
Set WB = ActiveWorkbook
Set oApp = CreateObject("Outlook.Application")
Set omail = oApp.Createitem(0)
With omail
.To = Range("B61").Value
.Subject = "Approved"
.Body
.Display
Rows("81:134").Select
Selection.EntireRow.Hidden = True
End With
我可以轻松地保存文件并将其邮寄,但我无法将其保存到特定位置。
我需要能够指定像“C:\path\file.pdf”这样的路径。
【问题讨论】:
-
如果有人“在外面”能帮我解决这个问题,我真的很高兴。
标签: excel vba pdf printing acrobat