Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Convert Excel to PDF via VB code

I'm fairly new to Excel programming. I'm trying to automate the process
to covert reports generated by an Excel macro to PDF files (one report
has to be saved as a PDF file, then the macro will clean up the Excel
sheet and create another report, save the new one as another PDF file.
Excel should continue the procedure until the macro tells Excel to
stop).

I tried the "record macro" function to record the process but no VB
code was recorded for the procedure to convert an Excel range to a PDF
file. I have asked all my friends for help but nobody knows what VB
code could tell Excel to do the job.

Any suggestion will be highly appreciated.



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Convert Excel to PDF via VB code

Excel has no built in capability to do it. The usual method is to use the
pdfwriter print driver from Adobe Acrobat. Do you have Adobe Acrobat - the
whole product, not just the reader?

You can also look for third party solutions

http://www.pdfplanet.com

--
regards,
Tom Ogilvy


wayne wrote in message
...
I'm fairly new to Excel programming. I'm trying to automate the process
to covert reports generated by an Excel macro to PDF files (one report
has to be saved as a PDF file, then the macro will clean up the Excel
sheet and create another report, save the new one as another PDF file.
Excel should continue the procedure until the macro tells Excel to
stop).

I tried the "record macro" function to record the process but no VB
code was recorded for the procedure to convert an Excel range to a PDF
file. I have asked all my friends for help but nobody knows what VB
code could tell Excel to do the job.

Any suggestion will be highly appreciated.



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/



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
Convert a Number Code to a Text Code Traye Excel Discussion (Misc queries) 3 April 6th 07 09:54 PM
Do not convert 24hr time in Excel to Portugese postal code Art Welch Excel Discussion (Misc queries) 0 August 28th 06 05:10 PM
Please help me with microsofts code to convert more than 65000 rows from text to excel fari Excel Discussion (Misc queries) 2 June 21st 06 01:14 PM
vb help, convert from formula to vb code.. Michael A Excel Discussion (Misc queries) 1 January 7th 06 11:30 AM
VBA Code to convert Excel to PDF wayne Excel Programming 3 October 29th 03 01:16 PM


All times are GMT +1. The time now is 03:40 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"