Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 124
Default printing to a pdf file

Hi.....

I need to run code that will print an excel workbook to a pdf file.
Here's what I got when I recorded the macro to do it..

Application.ActivePrinter = "Adobe PDF on Ne04:"
ActiveWorkbook.PrintOut Copies:=1, Collate:=True


(Not sure if this will work for others using different versions of Adobe
Writer..???).

Anyway.. I need the code to check to see if the user has Adobe Writer
software (or software that will allow them to print to a pdf file) and if
they do not ...then a message states "cannot print to pdf" and if they
do..then it prints to the pdf file.

Not sure if this is possible... so any help is greatly appreciated..

Thanks in advance!
Kimberly


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default printing to a pdf file

http://groups-beta.google.com/advanced_search

--
Regards,
Tom Ogilvy

"KimberlyC" wrote in message
...
Hi.....

I need to run code that will print an excel workbook to a pdf file.
Here's what I got when I recorded the macro to do it..

Application.ActivePrinter = "Adobe PDF on Ne04:"
ActiveWorkbook.PrintOut Copies:=1, Collate:=True


(Not sure if this will work for others using different versions of Adobe
Writer..???).

Anyway.. I need the code to check to see if the user has Adobe Writer
software (or software that will allow them to print to a pdf file) and if
they do not ...then a message states "cannot print to pdf" and if they
do..then it prints to the pdf file.

Not sure if this is possible... so any help is greatly appreciated..

Thanks in advance!
Kimberly




Reply
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
Printing to a PDF file daleatshel Excel Discussion (Misc queries) 1 August 13th 08 09:27 PM
Printing a .pdf file [email protected] Excel Programming 1 December 15th 04 11:01 PM
Error 1004 in printing .ps (postscript) file from .xls file chemburkar[_2_] Excel Programming 2 February 5th 04 11:33 PM
Help printing to PDF file Karl Schmidt Excel Programming 4 December 23rd 03 07:47 PM
printing to a PDF file Tom S[_3_] Excel Programming 3 August 12th 03 09:34 PM


All times are GMT +1. The time now is 04:19 AM.

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

About Us

"It's about Microsoft Excel"