Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
AH·C
 
Posts: n/a
Default File Save Sequencing: Foo1.xls, Foo2.xls...


Does XL have a built-in method that I could tap into to autosequence my
filenames when saving?

I have a template that uses a couple parameters to come up with a
filename, ie Job# JobType.xls. Since several files with the same Job#
& JobType in a day is not uncommon, simply adding a date string won't
work. What I've been doing is manually adding an increment number, ie
Job# JobType1.xls, Job# JobType2.xls

I need to come up with a macro during FileSave to count every file in a
directory that matches the new intended file and append that count to
the end of the new file name.

TIA

Andy


--
AH·C
------------------------------------------------------------------------
AH·C's Profile: http://www.excelforum.com/member.php...o&userid=29108
View this thread: http://www.excelforum.com/showthread...hreadid=488537

  #2   Report Post  
Posted to microsoft.public.excel.misc
Paul B
 
Posts: n/a
Default File Save Sequencing: Foo1.xls, Foo2.xls...

Andy, how about adding a data and TIME to the file name, something like

ActiveWorkbook.SaveAs Filename:="Your Parameters Here" & Format(Now,
"mm-dd-yyyy-hh-mm") & ".xls", FileFormat:= _
xlNormal, Password:="", WriteResPassword:="",
ReadOnlyRecommended:=False _
, CreateBackup:=False
End Sub


--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"AH·C" wrote in message
...

Does XL have a built-in method that I could tap into to autosequence my
filenames when saving?

I have a template that uses a couple parameters to come up with a
filename, ie Job# JobType.xls. Since several files with the same Job#
& JobType in a day is not uncommon, simply adding a date string won't
work. What I've been doing is manually adding an increment number, ie
Job# JobType1.xls, Job# JobType2.xls

I need to come up with a macro during FileSave to count every file in a
directory that matches the new intended file and append that count to
the end of the new file name.

TIA

Andy


--
AH·C
------------------------------------------------------------------------
AH·C's Profile:

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



  #3   Report Post  
Posted to microsoft.public.excel.misc
AH·C
 
Posts: n/a
Default File Save Sequencing: Foo1.xls, Foo2.xls...


Paul, I do use the DATE technique on other files, particularly on my
personal work records & timeshetts etc.

However, this project is a template used by 10 inspectors daily, but
after a few days, the typical Job# gets closed, while some may stay
open up to 1/2 year. On average, we'll have about 100 active job
orders.

Hmmm, thinking about the pros/cons of the end result... in terms of
backup, 'paper-trail' and saving to network server, etc... yes, I will
go with "yymmddhhmm" (no sorting issues).

Certainly eliminates the issue of me manually renaming & uploading the
files after the net goes down for whatever reason or when an inspector
comes back in wireless range.

Thanks for the thot stimulation, your suggestion is indeed a TIME
saver. ;)

Andy


--
AH·C
------------------------------------------------------------------------
AH·C's Profile: http://www.excelforum.com/member.php...o&userid=29108
View this thread: http://www.excelforum.com/showthread...hreadid=488537

  #4   Report Post  
Posted to microsoft.public.excel.misc
Paul B
 
Posts: n/a
Default File Save Sequencing: Foo1.xls, Foo2.xls...

Your welcome

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"AH·C" wrote in message
...

Paul, I do use the DATE technique on other files, particularly on my
personal work records & timeshetts etc.

However, this project is a template used by 10 inspectors daily, but
after a few days, the typical Job# gets closed, while some may stay
open up to 1/2 year. On average, we'll have about 100 active job
orders.

Hmmm, thinking about the pros/cons of the end result... in terms of
backup, 'paper-trail' and saving to network server, etc... yes, I will
go with "yymmddhhmm" (no sorting issues).

Certainly eliminates the issue of me manually renaming & uploading the
files after the net goes down for whatever reason or when an inspector
comes back in wireless range.

Thanks for the thot stimulation, your suggestion is indeed a TIME
saver. ;)

Andy


--
AH·C
------------------------------------------------------------------------
AH·C's Profile:

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



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
save to same file as opened dmtech Excel Discussion (Misc queries) 6 March 8th 06 06:25 PM
Macro Save File (Unique file name) SJC Excel Worksheet Functions 5 October 27th 05 10:09 PM
Excel 2000 cannot save and create temp file GK Setting up and Configuration of Excel 1 October 25th 05 10:33 PM
Disable Dialogue Box To Save & Replace File Dolphinv4 Excel Discussion (Misc queries) 2 October 24th 05 05:42 AM
Macro to save a file as ynissel Excel Discussion (Misc queries) 4 May 26th 05 02:48 PM


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