A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Thanks for the response.
Yes, the controls are on a Worksheet. The Forms and ,Modules were being added back one by one back into the Project while rebuilding the workbook and checking for the error.
It does not work with just one label.
The combo boxes are populated from Workbook_Open using .AddItem method.
The workbook is huge and it's hard to select which part of the code to post as the error doesn't seem to be the code. For example, the (same) code works in Excel 2003 enviroment,, but not 2007.
The error always occurs in Workbook Open.
It is like the problem is Excel. To recreate I start with a blank workbook then add the controls.
I save, close Excel, reload and add a module, repeating these steps until the error occurs.
The modules are not called, just added to the project.
My Workbook_Open consists of
Private Sub Workbook_Open()
#If VBA6 Then
#Else
MsgBox "Macros in this Spreadsheet requires a later version of Excel"
Exit Sub
#End If
Sheets("Sheet1").Select
The last line is highlighted when the error happens. Otherwise execution continues correctly.
I've also seen the link from Andreas and applied all the suggestions there . The result was a Workbook
which did error worked fine - BUT only once. When saved and reloaded, the same error returned.