Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Macros in Excel - Save as and rename file

Another way would be to use the built in Name statement
Dim sPath as path
ActiveWorkbook.SaveAs Filename:="Bob.CSV", FileFormat:=xlCSV
sPath = ActiveWorkbook.Path
if right(sPath,1) < "\" then sPath = sPath & "\"
ActiveWorkbook.Close
Name sPath & "Bob.CSV" as sPath & "Bob.ps"

Note that this will not make the file a postscript file. You would need
some type of conversion program to do that. Perhaps using Acrobat distiller.

--
Regards,
Tom Ogilvy

Gisle Rong wrote in message
...
Hello
I am to make a postscript (.ps) file from excel, but I cennot save the

excel
worksheet as a .ps file. I have therefore made a macro that saves the
worksheet as a .csv file. However, I have not managed to rename the .csv
file to a .ps file by usint the same macro.

The following is to be done:
Microsoft Excel formet - .csv format - .ps format.

Greatful for any reply.

Gisle Rong




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
How can I save or open file as YYYYMMDD in Macros Vijay Kotian Excel Discussion (Misc queries) 1 September 4th 06 08:33 AM
Macros Containing a File Save As & Tab Deletions Mike The Newb Excel Discussion (Misc queries) 4 August 16th 06 12:43 PM
How to set SAVE AS file name to equal A1 contents when rename file E Excel Discussion (Misc queries) 0 October 19th 05 08:36 PM
save excel file from a table delimited file (.txt) using macros sedamfo New Users to Excel 1 February 15th 05 04:19 AM
Macros in Excel - Save as and rename file Bob Phillips[_5_] Excel Programming 0 August 13th 03 09:28 AM


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