print range to a PDF file with a name set in a cell containing path\filename.pdf

vince47

New Member
Joined
Aug 23, 2013
Messages
3
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
 

vince47

New Member
Joined
Aug 23, 2013
Messages
3
hi and welcome to the board.
I use a free pdf printer called BullZip. it is programmable, and able to easily print a range to a pdf.
Bullzip.com - Free PDF Printer

Thanks for your kind welcome.
I am able to print to a PDF using the navigation keys.
What I am after is to print to a PDF via a list of commands in a macro with a given path\filename created in the worksheet
 

diddi

Well-known Member
Joined
May 20, 2004
Messages
2,554
yeh, just set the printer default to the bullzip printer.
print your sheet or selection or userform
set default back to normal


the "printout" will be a pdf
then rename from the generic pdf name you set in preferences to your path
 

vince47

New Member
Joined
Aug 23, 2013
Messages
3
yeh, just set the printer default to the bullzip printer.
print your sheet or selection or userform
set default back to normal


the "printout" will be a pdf
then rename from the generic pdf name you set in preferences to your path
Hi diddi

thanks for your suggestion, however since then I continued to search and joined other groups to see about his problem. I found some code that with some amendments to my particular case, I obtained what I wanted just by a click on a command button that runs a macro.

I had to install PDFcreator as the code was using is program to create the PDF file

thanks for taking interest in my problem

Vince
 

diddi

Well-known Member
Joined
May 20, 2004
Messages
2,554
pdf creator and bullzip do the same thing...
as long as you have a solution, thats great.
 

Forum statistics

Threads
1,081,845
Messages
5,361,665
Members
400,643
Latest member
RockStar89

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top