Compile throws a “User-defined type not defined” error but does not go to the offending line of code

前端 未结 21 1301
再見小時候
再見小時候 2020-12-14 08:00

Symptoms

This is a symptom specifically when compiling an Excel VBA project. The following error occurs:

User-defined type not defin

21条回答
  •  天命终不由人
    2020-12-14 08:36

    Had a similiar experience, but it was because I had renamed an enum in one of my classes. I exported and re-imported the Classes that had referred to the old enum and the error message disappeared. This suggests it is a caching issue in the VBA environment.

提交回复
热议问题