Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default SaveAs filename PDF

Hi,

the code below converts files to pdf after I have already converted
the files to post-script file. It all works well and good except what
I REALLY want itto do is to create a new folder in C: prob called
"temporary" where the pdf's can go and then kill all pdf later.

Currently, the pdf's are being saved via a cell where i've typed in
the folderlocation called 'saveAsFolder'

Current Code

psName = staffname & " " & printstring & inc & ".ps" 'Name of PS
file
pdfName = staffname & " " & printstring & inc & ".pdf" 'Name
of PDF
myPDF.FileToPDF saveAsFolder & psName, saveAsFolder & pdfName,
""

Kill (saveAsFolder & "*.log")
Kill (saveAsFolder & "*.ps")

Appreciate any help !

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default SaveAs filename PDF

Real Easy
MkDir "c:\temporary"

"kidkarma" wrote:

Hi,

the code below converts files to pdf after I have already converted
the files to post-script file. It all works well and good except what
I REALLY want itto do is to create a new folder in C: prob called
"temporary" where the pdf's can go and then kill all pdf later.

Currently, the pdf's are being saved via a cell where i've typed in
the folderlocation called 'saveAsFolder'

Current Code

psName = staffname & " " & printstring & inc & ".ps" 'Name of PS
file
pdfName = staffname & " " & printstring & inc & ".pdf" 'Name
of PDF
myPDF.FileToPDF saveAsFolder & psName, saveAsFolder & pdfName,
""

Kill (saveAsFolder & "*.log")
Kill (saveAsFolder & "*.ps")

Appreciate any help !


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default SaveAs filename PDF

Look into the MkDir statement.

NickHK

"kidkarma" wrote in message
oups.com...
Hi,

the code below converts files to pdf after I have already converted
the files to post-script file. It all works well and good except what
I REALLY want itto do is to create a new folder in C: prob called
"temporary" where the pdf's can go and then kill all pdf later.

Currently, the pdf's are being saved via a cell where i've typed in
the folderlocation called 'saveAsFolder'

Current Code

psName = staffname & " " & printstring & inc & ".ps" 'Name of PS
file
pdfName = staffname & " " & printstring & inc & ".pdf" 'Name
of PDF
myPDF.FileToPDF saveAsFolder & psName, saveAsFolder & pdfName,
""

Kill (saveAsFolder & "*.log")
Kill (saveAsFolder & "*.ps")

Appreciate any help !



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
SaveAs Cell.value=filename Helmut Excel Programming 4 November 23rd 06 03:26 PM
SaveAs with a pre-defined filename Stefi Excel Programming 5 November 9th 05 03:06 PM
SaveAs using two cells for filename David Excel Discussion (Misc queries) 5 June 4th 05 11:46 AM
FileName SaveAs alanford Excel Programming 1 February 18th 05 01:01 PM
SaveAs Filename Help Ed[_14_] Excel Programming 2 November 20th 03 07:43 PM


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