Hi Charles,
I could sometimes recreate this yesterday, but not today !?
The error is triggered because we are registering the workbook to be examined for functions info, but then it is (unexpectedly) not found in the Application.Workbooks collection soon after. The Invalid Index is the workbook name not being found in the Workbooks collection.
It would not be hard to remove the error report in this case, but I would rather understand the behaviour a bit better first.
When I had trouble, it was in the context of Excel crashing (due to IntelliSense add-in being re-loaded unexpectedly) and then leaving recovery files. It might be that these were problematic.
Do you always see this when you have the RegisterXLL in a Workbook_Open, or only sometimes?
Could it be in a context where you have recovery files, or RegisterXLL is running with the IntelliSense already loaded (from another workbook or automaticallly)?
-Govert