Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
KR KR is offline
external usenet poster
 
Posts: 121
Default Specifying Filename when creating PDf from Excel Workbook

jlejehan-

in case you are still monitoring this thread for responses; it sounds like
you are simply using the Excel "save as" function and adding .pdf on the end
of the filename. This won't work, because your pdf creation software (adobe
or cutepdf) actually has to make a new file based on what is being sent to
the printer driver by Excel. If you'd like a simple (but inelegant)
solution, print the document and let it save the file with your current
filename. Then in VBA code, pause for 5-10 seconds to give the pdf filemaker
time to finish making the file, then use VBA to simply rename that file to
your desired name using the name from your worksheet. You can also move the
file with the same code, if cutepdf is dumping the .pdf file in a directory
other than where you want the file. I had code that did this with Adobe
Acrobat 4 (or was it 5?) but I don't have access to that code anymore, so
you'll have to check the Excel helpfile, try to come up with some sample
code, then post back again if you need more help.

best of luck,
Keith

"jlejehan" wrote in
message ...

William,

Thanks - sadly I don't have access to the pdfdistiller, so I'm having
to use cutepdf instead and try and find code that works on this.

I hope I'm almost there but the file created just doesn't open in
acrobat reader - it's not recognised.

I assume the reason for using the distiller in the first place is to
rectify the problems associated with moving straight from traditional
excel format to a pdf, so there may be someway of doing this using the
cutepdf printer - but I still can't figure this out personally.

if anyone has any further suggestions I'd be grateful?

thanks


--
jlejehan
------------------------------------------------------------------------
jlejehan's Profile:

http://www.excelforum.com/member.php...o&userid=33950
View this thread: http://www.excelforum.com/showthread...hreadid=547403



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
Creating a named range gives an error only when the filename is lo Adi[_2_] Excel Discussion (Misc queries) 1 September 15th 09 01:14 PM
vba, get filename of this workbook md[_2_] Excel Discussion (Misc queries) 3 March 29th 08 12:04 PM
Creating a Word filename shortcut in Excel Creating a Word shortcut in Excel Excel Discussion (Misc queries) 2 November 25th 07 10:33 PM
activate a workbook without using its filename? Jon[_21_] Excel Programming 1 November 16th 05 03:15 PM
My workbook filename [email protected] Excel Programming 3 April 25th 05 03:55 PM


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