Hi there,
Background story: I have coding that loops through .xls* files. It starts out at the named parent folder, which is organized then in subfolders(layer1), and those subfolders have subfolders(layer2), which contain the .xls* files. The subfolders(layer1), subfolders(layer2), and excel file names are referenced using variables when opening the .xls* files.
Problem 1: After about an 1hr, 1.5hrs, I get an error saying that VBA cannot find the file, but when I check the location, everything looks fine. I thought that because there are so many files, perhaps it was actually a memory issue. But if it was, then VBA would have told me so...... Maybe the coding takes too long to run and excel doesn't like it?...
Problem 1.2: The coding does not come up with the error at the same .xls* file. Sometimes it'll run fine, go past where it had stopped in a previous run, then stop at a later file.
The coding runs just fine for dozens of files, working with various subfolders.. So I don't think there's something wrong with how the coding is set up in terms of looping and locating files using variables.
If anyone has any thoughts, I would greatly appreciate it.
Thanks.
Background story: I have coding that loops through .xls* files. It starts out at the named parent folder, which is organized then in subfolders(layer1), and those subfolders have subfolders(layer2), which contain the .xls* files. The subfolders(layer1), subfolders(layer2), and excel file names are referenced using variables when opening the .xls* files.
Problem 1: After about an 1hr, 1.5hrs, I get an error saying that VBA cannot find the file, but when I check the location, everything looks fine. I thought that because there are so many files, perhaps it was actually a memory issue. But if it was, then VBA would have told me so...... Maybe the coding takes too long to run and excel doesn't like it?...
Problem 1.2: The coding does not come up with the error at the same .xls* file. Sometimes it'll run fine, go past where it had stopped in a previous run, then stop at a later file.
The coding runs just fine for dozens of files, working with various subfolders.. So I don't think there's something wrong with how the coding is set up in terms of looping and locating files using variables.
If anyone has any thoughts, I would greatly appreciate it.
Thanks.