Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Autosaving files with different names

Hello. Quick question. I have created a macro do create a report for me. I want it to save the file to a specific drive (ie. \\pkcfp001\tlynch07\Sales Distribution Reports\). When the original file is created, the name is given as SalesBaseReport04112004.xls where the 04112004 represents the date for the data in the file. If possible, I would like it to take just the date portion and create a filename based on the date in 04.11.2004.xls or 04-11-2004.xls format. The filename will change on a daily basis with the date. Is it possible to make this happen?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 56
Default Autosaving files with different names

Hi Thomas
Assuming date is today's:
Dim NameOFile$
NameOFile = Format(Date, "mm-dd-yyyy")
ThisWorkbook.SaveAs NameOFile & ".xls"

Regards
Pascal

"Thomas L" a écrit dans le message de
...
Hello. Quick question. I have created a macro do create a report for me.

I want it to save the file to a specific drive (ie.
\\pkcfp001\tlynch07\Sales Distribution Reports\). When the original file is
created, the name is given as SalesBaseReport04112004.xls where the 04112004
represents the date for the data in the file. If possible, I would like it
to take just the date portion and create a filename based on the date in
04.11.2004.xls or 04-11-2004.xls format. The filename will change on a
daily basis with the date. Is it possible to make this happen?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Autosaving files with different names

Ok, I understand that, the only thing that would be different, is that the Date in the file is going to be behind 1 day (ie. File SalesBaseReport04112004.xls contains data from 4/11/04 but I wont receive it until 4/12/04 and want to save it as the data date, 4/11/04).

"Thomas L" wrote:

Hello. Quick question. I have created a macro do create a report for me. I want it to save the file to a specific drive (ie. \\pkcfp001\tlynch07\Sales Distribution Reports\). When the original file is created, the name is given as SalesBaseReport04112004.xls where the 04112004 represents the date for the data in the file. If possible, I would like it to take just the date portion and create a filename based on the date in 04.11.2004.xls or 04-11-2004.xls format. The filename will change on a daily basis with the date. Is it possible to make this happen?

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
lost files, names of files still exist roosblack Excel Discussion (Misc queries) 0 June 6th 09 02:01 PM
Can Excel 2003 prompt before Autosaving? Chris777 Excel Discussion (Misc queries) 1 April 19th 05 12:08 AM
Change names of files in a folder to match names in Excel Column saybut Excel Programming 4 February 9th 04 06:26 PM
Autosaving Bryn[_2_] Excel Programming 0 February 5th 04 10:58 AM
Autosaving Workbook Microsoft Excel Programming 6 January 8th 04 01:59 PM


All times are GMT +1. The time now is 07:23 AM.

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"