我想将Excel文件另存为.pdf文件到特定位置,然后通过邮件发送文件。将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”这样的路径。
我真的很高兴,如果有人“那里”可以帮助我这一个。 – Anders 2010-10-11 22:21:17