Morning!
I'm working on a macro that opens up all the Excel files within a directory, then copies and pastes specific cells into another worksheet which runs a statistical macro on the data. The copy/paste macro works fine in 2003, but not in 2007. It crashes during a loop using FileSystemObject.GetFile(filename) which is storing the file names into an array. The error it gives is Run Time 53 File Not Found, but it looks like it is grabbing the file name and trying to pass it as Nothing into the FSO.
Code:
Crashes on Set myFile = FSO.GetFile(CStr(varFileList(x)))Please Login or Register to view this content.
Any light that could be shed on this would be greatly appreciated,
Carl
Bookmarks