First of all macro has to open all files in order to extract data but when I run the macro in my environment after moving the sheet "test?" from the "?_test?" to the "1.xlsx"
all the file "?_test?" is closed automatically.
So what is the name of the files that is kept open?
hi alf, the files which remain opened are the 1_test1.xlsx, 1_test2.xlsx, 1_test3.xlsx - 1.xlsx gets closed.
???? Not sure what you mean by that, as long as a macro runs excel is locked and you have to wait until the macro is finished before you can start working with excel again.
Unless you can start two instances of excel:
http://www.online-tech-tips.com/ms-o...-new-instance/
i meant, if it can run in the taskbar - anyways, this shouldnt be a problem.
What is missing in the macro is a bit of error handling. If a folder, a file or a sheet is missing when running the macro it will throw an error and stop. I'll have a go of how to implement this.
yes, to resolve this issue i had to introduce sheets even if its blank - also, there is a possibility that few sr.no.s will not be available - if there is a possibility of identifying a missing value and skip to next, should resolve, but i am too novice to understand how will this get coded !
Alf
Ps Why did the macro throw a "subscription out of range" error message on your first test? Need to know as "long distance" troubleshooting can be a problematic and knowing what went wrong makes it easier for me the next time I need to fix a problem.
Bookmarks