Hi,
Quick question. I'm using the following VBA code to print a worksheet to PDF. How do I specify the file name and file path within the VBA code?
Thanks
Sub PrintToPDF()
Application.ActivePrinter = "Adobe PDF on Ne05:"
ActiveWindow.SelectedSheets.PrintOut Copies:=1, ActivePrinter:= _
"Adobe PDF on Ne05:", Collate:=True
End Sub
Quick question. I'm using the following VBA code to print a worksheet to PDF. How do I specify the file name and file path within the VBA code?
Thanks
Sub PrintToPDF()
Application.ActivePrinter = "Adobe PDF on Ne05:"
ActiveWindow.SelectedSheets.PrintOut Copies:=1, ActivePrinter:= _
"Adobe PDF on Ne05:", Collate:=True
End Sub