kchm_2000,
Right away I noticed some problems in the setup. Your code looks if Cell(x,1) is empty. But you don't have any data in column A in the Main workbook, so the first cell it looks at is empty and then it exits the macro. Also, the sheet you wanted from Test2.xlsx didn't exist. It looks like Test.xlsx was just copy/pasted wholesale, so they both have a worksheet named "1" and Test2 did not have a worksheet named "2" which was specified in the Main workbook.
I renamed the "1" worksheet in Test2 to "2" so that it matched what the Main workbook was searching for, and then I updated your code:
Hope that helps,
~tigeravatar
Bookmarks