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

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

    When I had this error in a MS Access database I used the /decompile command line switch along with the Compact/Repair option. Worked for me. I had removed a reference that I was sure my code no longer used and started getting this error.

提交回复
热议问题