taigovinda
Well-known Member
- Joined
- Mar 28, 2007
- Messages
- 2,639
I have a bunch of files that I make every day. Then I copy them to an archive folder and re-name the ones that are still in my current folder.
For instance, tomorrow I will copy "Deposits 070909" and "Open Balance 070909" to my archive folder and, in the current folder, rename them "Deposits 071009" and "Open Balance 071009." There are also a couple of Excel files in my current folder that do not end in dates, and those I use every day without copying or renaming.
Can someone help me to get this to happen automatically?
I figure I could rename each file with something like this:
...but I don't know how to loop through the files or how to change the names while they're closed - or how to determine if they end in a date.
Thanks for helping me
Tai
For instance, tomorrow I will copy "Deposits 070909" and "Open Balance 070909" to my archive folder and, in the current folder, rename them "Deposits 071009" and "Open Balance 071009." There are also a couple of Excel files in my current folder that do not end in dates, and those I use every day without copying or renaming.
Can someone help me to get this to happen automatically?
I figure I could rename each file with something like this:
Code:
newname=substitute(oldname,mid(oldname,find(".",oldname)-6,6),format(date,"mmddyy"))
...but I don't know how to loop through the files or how to change the names while they're closed - or how to determine if they end in a date.
Thanks for helping me
Tai