LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.misc,microsoft.public.excel.worksheet.functions,microsoft.public.excel.worksheetfunctions
Who be dat?
 
Posts: n/a
Default Saving an entire workbook as a PDF using VBSCript

Hello all!

I'm using a VBScript file which I've added to Server 2003 scheduler to
automatically open up Excel, load it with a workbook which is in turn
populated with data, print it out, dynamically come up with a filename which
is figured off of the current date and time which is then appended to the
original filename of the workbook, save it in HTML format, then close
itself. Works like a charm.

I've decided I don't want to save the file in HTML format but would instead
like to save it in PDF. The reason being is HTML files can modified by any
with a text editor. PDF files are relatively permanent and secure which is
what I need.

I have Acrobat 6.0 Pro installed. I can use the print function, select
Adobe PDF as the printer, a prompt comes up asking for a file name to save
to, and it gets converted. At least when I do it manually it's like that.
I thought I could figure out how to do it within VBScript easily. As it
turns out, I'm freaking lost and have no idea how to do it. I was hoping
some info would be on Adobe's website but I'm not finding anything.

Anybody have any ideas? This workbook based report runs every 2 hours. I
have to be able to create a PDF with its own filename that I assign to it
and save it to a specified directory.

I don't have the vbscript file I'm using to do the above with handy at the
moment. If anyone wants it, just let me know and I'll post it later.

Thanks all!

Chris Smith


 
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
Adding Headers and Footer to an Entire Workbook?? Spyder Excel Discussion (Misc queries) 5 February 25th 10 03:46 PM
saving multiple sheets in a workbook Danimal82 Excel Discussion (Misc queries) 2 October 4th 05 05:34 PM
Saving data in a worksheet within a workbook Homeuser Excel Discussion (Misc queries) 2 August 21st 05 10:49 PM
Saving as web page for workbook with frozen panes tawne Excel Discussion (Misc queries) 0 January 19th 05 07:47 PM
Can I AutoFilter an entire workbook? Matrix015 Excel Discussion (Misc queries) 0 January 18th 05 02:51 PM


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