Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 25th, 2006, 02:48 PM
Registered User
 
Join Date: Sep 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default VBA to create PDF from webpage

I did a bit of googling on the problem, but so far, I haven't found anything substanial, so hopefully someone here can help me.

My group at work produces a number of reports using Excel and SQLServer each day. With most of these reports, we use the PDF distiller via VBA to print each report, then attach the resulting file in an email.

On one report, it has evolved into becoming a bit of a guide and is over 20 pages now. As such, the recipients requested that we add some clickable links in the table of contents to make jumping to the apporiate section easier. I have accomplished this by the following:

1) The table of contents is on a seperate sheet in the excel file. The names of each section have a hyperlink to the PDF files that we generate for each section. I save this sheet as an htm file.

2) Each of the reports is printed using the distiller into a seperate PDF document, tha the table of contents has a link to.

3) I open Adobe Acrobat and click "Create file from web," select the Table of contents htm file, select "Acquire entire webpage," and it creates the entire 20+ page report, complete with active hyperlinks in the table of contents that jump the user directly to the report they want.

4) I then save this file and exit Adobe Acrobat.

5) I go back into my Excel file and run a macro that attaches the combined PDF file to an email.


What I would like to do is to program, via VBA, the whole "Create from website" part so that the whole thing is done automatically.

Anyone every attempt something like this?

I looked online to see if I could find some documentation on programming Adobe, even called their tech support line (who is not very helpful when it comes to programmically using their product), but no luck so far.

Thanks!






Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2000 Create PDF with VBA [email protected] Excel VBA 8 March 5th, 2008 03:36 PM
create buttons dynamically on webpage rocksbhavesh ASP.NET 1.0 and 1.1 Professional 5 April 19th, 2007 05:20 PM
Copy data from webpage to excel using vba kg8299 Excel VBA 0 April 5th, 2006 03:51 AM
display a pdf in a webpage crmpicco Classic ASP Basics 3 February 8th, 2005 09:59 AM
Show PDF without a webpage?? morpheus Classic ASP Basics 2 March 6th, 2004 09:05 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.