E
Ed
I have a macro which uses Dir$ to search through a series of folders with
dates in the name for the one with the latest date. I do this to find a
file and update it with new information. Unfortunately, my own cleverness
has done me in! The macro in question is run after another macro has
created a bunch of new files and stored them in a new folder - with today's
date, of course. And without my file to update, of course! So the macro
throws up its hands and quits because it can't find a file that's not there.
What I need is a way to find the *next to* latest date. I _usually_ run
this on the same day every week, but I can't guarantee this, so I can't for
sure say the dates are a week apart. Any ideas?
Ed
dates in the name for the one with the latest date. I do this to find a
file and update it with new information. Unfortunately, my own cleverness
has done me in! The macro in question is run after another macro has
created a bunch of new files and stored them in a new folder - with today's
date, of course. And without my file to update, of course! So the macro
throws up its hands and quits because it can't find a file that's not there.
What I need is a way to find the *next to* latest date. I _usually_ run
this on the same day every week, but I can't guarantee this, so I can't for
sure say the dates are a week apart. Any ideas?
Ed