LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Using VBA to print to a PDF

A previouls posting by Keith:
A low-tech solution that also works is to use the distiller instead of the
adobe printer. (record a macro to grab the appropriate code). The distiller
does not pop up a dialog window. However, it saves your file to the
distiller directory, with the same name as the source Excel file. What I
did was put in a 10-sec delay in my VBA to allow distiller to process the
file, then used VBA to rename the file (and relocate it to my desired
directory).

Low tech, but very effective.

--------
And by Brian Webb
I had a similar problem with Word recently. I switched
the ActivePrinter to "Acrobat Distiller" and had more luck.
It kept wanting to save everything to "it's" directory, but
you can add a new printer port as type "PDF Port" and
set a different destination directory that way. I spent
hours trying to get PDFWriter to work from VB, so I know
where you're coming from.

--
Regards,
Tom Ogilvy


"Steve" wrote in message
...
I realy need some help here, I posted this yesterday but
got no response.

I would like to print to a PDF file from xl. When I hit
print it asks for a name to save the PDF file to. I have
about 100 pages that I will be doing this for, I don't
want to have to type in each page name.

how do I, using vba, tell xl what to name the PDF file.

Thanks
steve




 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
First page of Excel sheerepeats in print layout or print preview philfrotonda Excel Discussion (Misc queries) 1 July 12th 07 09:28 PM
Print and Print Preview Graphic Moving Resizing 2007/2003 Adam Rayburn Excel Discussion (Misc queries) 0 April 4th 07 04:18 PM
cell borders that I create dont show on print preview or print scott3435 Excel Discussion (Misc queries) 2 April 6th 06 02:37 AM
Pivot Table macro to set print area and print details of drill down data Steve Haskins Excel Discussion (Misc queries) 2 December 28th 05 04:59 PM
Active cell counting in particular print page (one sheet having different print area) ananthmca2004 Excel Worksheet Functions 1 November 24th 05 11:29 AM


All times are GMT +1. The time now is 02:51 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"