Will appreciate help on this error - it has bugged me for more than 2 months; and my head is about to roll for it:
developing application using Excel 2000, VBA.
customising a workbook to interact with an add-in (developing this too).
one of the userforms, codes within the add-in,
is to be launched from a customised toolbar button from the workbook.
however, when form is launched, the error (subject title) appears and Excel crashes.
the weird thing is that when the code window has been opened as least once,
and i switch back to the workbook,
click the button to launch the userform,
it is no problem. Entire application runs fine. figures move from workbook to add-in and the other way fine.
however, when I close everything and save; and [testing purpose] re-open the workbook fresh and re-install the add-in,
the above-described error happens. the other userforms are fine.
having read tons of materials from MSDN, there seems to be some early/late binding issue, but I cannot figure out what.
by the way, I have no idea what 'IMdcText'is - it is not created by me and it cannot be found from the objects window.
stepping through one step at a time - I found that the error happens halfway through when zero (literally "0" values are being assigned to the 500 text boxes on the MultiPage on the userform. The funny thing is that the error occurs at different text boxes at different times.
I am totally lost.
In addition, already virus scanned the PC many times - very clean. Also reformatted and reinstalled Windows 2000, MS Office 2000, Visual Studio 6.0
developing application using Excel 2000, VBA.
customising a workbook to interact with an add-in (developing this too).
one of the userforms, codes within the add-in,
is to be launched from a customised toolbar button from the workbook.
however, when form is launched, the error (subject title) appears and Excel crashes.
the weird thing is that when the code window has been opened as least once,
and i switch back to the workbook,
click the button to launch the userform,
it is no problem. Entire application runs fine. figures move from workbook to add-in and the other way fine.
however, when I close everything and save; and [testing purpose] re-open the workbook fresh and re-install the add-in,
the above-described error happens. the other userforms are fine.
having read tons of materials from MSDN, there seems to be some early/late binding issue, but I cannot figure out what.
by the way, I have no idea what 'IMdcText'is - it is not created by me and it cannot be found from the objects window.
stepping through one step at a time - I found that the error happens halfway through when zero (literally "0" values are being assigned to the 500 text boxes on the MultiPage on the userform. The funny thing is that the error occurs at different text boxes at different times.
I am totally lost.
In addition, already virus scanned the PC many times - very clean. Also reformatted and reinstalled Windows 2000, MS Office 2000, Visual Studio 6.0