Hi.
I have a program that has been running without a hitch since Excel 2007. A user signed up to Office 365 got upgraded to Office 2016. Now the program fails when looking for a specific open workbook. Here is the code where the failure occurs:
The line
only returns a single open workbook, usually the workbook containing the code. It doesn't seem to matter how many workbooks are open, the workbooks collection only returns a single workbook. Since the workbook being looked for isn't found, the routine always returns a null object reference even though the desired workbooks is open. I tried putting "Application." before "Workbooks" in the hope that it would more specifically qualify the collection...to no avail.
Has anyone seen this issue and, if so, was any solution found. In the research I've done so far, it appears 2016 opens new instances of Excel with each open workbook. I'm guessing they have a bug in the code that only sees open workbooks in the current instance of Excel, which is why the collection only contains a reference to the workbook containing the code.
Hope someone can help.
Peter
Bookmarks