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

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

    I had the same issue, if you enable Microsoft Scripting Runtime you should be good. You can do so under tools > references > and then check the box for Microsoft Scripting Runtime. This should solve your issue.

提交回复
热议问题