This is a symptom specifically when compiling an Excel VBA project. The following error occurs:
User-defined type not defin
I had this same problem when I inherited another analyst's workbook. He assigned macros to each button on his worksheet. When I changed the name of the module (not the procedure name), it kicked up this error.
The fix was easy. Have the button run an _OnClick()
event procedure in the worksheet and have that procedure explicitly Call MyProcedureName()
.