VBA enums give occasional “Constant Expression Required” errors

后端 未结 5 1165
忘掉有多难
忘掉有多难 2020-12-16 11:41

I\'m using an enum defined in a class module in Excel VBA. This has been working fine, but I\'ve started getting a compile error on every time I do a comparison on enum vari

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-16 12:07

    I had the same issue with my Enum, I added Public Enum to the declaration and the problem stopped. No need to reboot.

提交回复
热议问题