Hi
I am using 2003 version of Excel.
I am trying to write macro run by clicking a "control button" that will choose "Adobe" as the printer, go to a particular cell to pick up the path & filename and store it to a variant and then I want to print the pre-set range in the worksheet to a PDF file with the contents of the variant as the filename.
I tried the record macro, but this popped up the Adobe "File save as" dialogue so I choose the path and give the file name.
I tried several examples I found on the internet, but it seems they all referred to Excel versions 2007 and 2010 as non of them worked on my 2003 version.
First I would like to know if it is possible to print to a PDF file with a named file without the Adobe dialogue box for file saving popping up.
If it can be done, I would appreciate the code for the VBA printout.
Thanks in advance
Vince
I am using 2003 version of Excel.
I am trying to write macro run by clicking a "control button" that will choose "Adobe" as the printer, go to a particular cell to pick up the path & filename and store it to a variant and then I want to print the pre-set range in the worksheet to a PDF file with the contents of the variant as the filename.
I tried the record macro, but this popped up the Adobe "File save as" dialogue so I choose the path and give the file name.
I tried several examples I found on the internet, but it seems they all referred to Excel versions 2007 and 2010 as non of them worked on my 2003 version.
First I would like to know if it is possible to print to a PDF file with a named file without the Adobe dialogue box for file saving popping up.
If it can be done, I would appreciate the code for the VBA printout.
Thanks in advance
Vince