I've got some code that opens a workbook, does some work, and then closes it. The code is running from another workbook. This works unless both workbooks are already open when I run the Sub. Then it closes the wrong workbook - it closes the one that is running the sub.
Anyone know why that would happen?
So, it it supposed to open 'export.xls', run a function, and then close it. And it does that UNLESS 'export.xls' is already open. In that case, it closes my oMain worksheet.
Why does it do that?
Thanks!
Bookmarks