Thanks Tom and Tushar
Yes, agreed ... using this function i/o is relatively slower
I just put it up there for a different way to do something.
Tushar, thanks for confirming this .... admittedly I don't use this method
opting for the strReverse for Xl2000+ or the loop.
cheers
Ivan
Tushar Mehta wrote in message news:<MPG.1a9bcc83c6c4e5f09896ef@news-server...
Hi Tom,
Nice in its simplicity, is what I meant.
You got me doing some analysis (totally unwarranted given all that I
had to do yesterday <g)
For 27,800+change files,
DIR() took 2.5 seconds
Evaluate() 1.5 seconds
StrReverse(Left(Instr(StrReverse(...)))) 0.2 seconds
a custom function with a while loop to find the last occurence of the
token of interest < 0.1 seconds.
--
Regards,
Tushar Mehta, MS MVP -- Excel
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions
In article ,
says...
You don't think doing a file io to get the filename is a bit slow?
Don't get me wrong, I have used Dir myself when I am lazy, but . . .