#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default File SaveAs

I have a text file that I have imported and done some formatting on. Now I
want to use VB to automatically save the file as an .xls to the current path
with the current date.

For example, the text file may be named MyTextFile.txt, so I want to save it
to current path/MyTextFile_Today's Date_Review.xls.

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 595
Default File SaveAs

FinChase

ActiveWorkbook.SaveAs "MyTextFile_" & Format(Date,"yyyymmdd") &
"_Review.xls"

--
Dick Kusleika
MVP-Excel
www.dailydoseofexcel.com

FinChase wrote:
I have a text file that I have imported and done some formatting on.
Now I want to use VB to automatically save the file as an .xls to the
current path with the current date.

For example, the text file may be named MyTextFile.txt, so I want to
save it to current path/MyTextFile_Today's Date_Review.xls.

Thanks!



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
Confused here Prevent Saving File - but allow ONLY File SAVEAS Met JMay Excel Discussion (Misc queries) 2 June 17th 07 04:37 PM
saveas CSV file stevekirk Excel Discussion (Misc queries) 0 August 10th 06 01:11 PM
Saveas where file already exists faberk Excel Programming 4 March 29th 05 12:25 AM
VBA-Excel. File-SaveAs [email protected] Excel Programming 3 February 17th 05 08:42 AM
Saveas with name of another file sowetoddid[_19_] Excel Programming 15 June 11th 04 04:53 PM


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