Brian Sowter
asked on
Excel VBA To Print range To PDF And Save Using Name In Cell
I am looking for sample code to print a defined range in an Excel spreadsheet to a PDF and save it using name in a cell.
Any help appreciated
Any help appreciated
ASKER
Hello Dave
Thank you very much for this. I get
"Run time error 1004. The document was not saved ...may be open or an error was encountered."
when I click the button. I have Excel 2007.
Regards
Brian
Thank you very much for this. I get
"Run time error 1004. The document was not saved ...may be open or an error was encountered."
when I click the button. I have Excel 2007.
Regards
Brian
You need perhaps to update the range L4 - to put your path and filename that tells the app where to save the PDF?
Dave
Dave
ASKER
Sorry. I dont understand range L4.
Why does your tested solution not run on my computer?
Brian
Why does your tested solution not run on my computer?
Brian
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Dave
brilliant...thanks
brilliant...thanks
Open in new window
See attached.
Dave
printRngAsPDF-r1.xlsm