mysterious-dr-x
Board Regular
- Joined
- Jul 29, 2011
- Messages
- 51
I'm looking to create a macro that will print a worksheet to .pdf, thus far I have the following;
Which isn't much I know, although it does work, so atleast there is that. Having said that, it only prints using whichever printer was last used.
How do I define that I want it to print to pdf?
In addition, I'd like the file name (from a specified cell) & save location (sub folder in same place as original excel doc) to be automatically detected, but for the user to ok them. I was going to do this using a form which I am about to go & develop, however, I've already looked into this & don't really know where to go in terms of code, so any help would be appreciated.
NB. The name of our .pdf printer is "PDF Complete"
Code:
Sub SavePDF()
ActiveWindow.SelectedSheets.PrintOut From:=1, To:=2, Copies:=1
End Sub
How do I define that I want it to print to pdf?
In addition, I'd like the file name (from a specified cell) & save location (sub folder in same place as original excel doc) to be automatically detected, but for the user to ok them. I was going to do this using a form which I am about to go & develop, however, I've already looked into this & don't really know where to go in terms of code, so any help would be appreciated.
NB. The name of our .pdf printer is "PDF Complete"