Hi, I have been experiencing timing issues using vba to process 6 CSV files in a folder. Basically, Excel misses files which are definitely in the folder.
I have been able to get more files picked up by inserting Application.Wait statements, but even then the results are not always consistent. I have also had the same problem with using the Kill command - some files get deleted and some don't. Innserting a Wait seems to sove the problem, but I don't think this is other than a clumsy 'patch'.
I have tried inserting DoEvents, but that makes no difference at all.
Code snippet:
Sometimes it gets all 6 files, sometimes it just gets two or three. Really infuriating! Is this an Excel 2010 bug?
Bookmarks