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

前端 未结 21 1318
再見小時候
再見小時候 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:26

    An different problem with the same symptom: I had a class implemented which was not defined. It was wrapped with a #if that I thought should have not allowed the compiler to see it, but not so. Remove the comment out the Implements statement and all is well. I assume importing the definition would also work...

提交回复
热议问题