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
Seems to be a bug.
Copy the same module's code to a new one, and recompile. That seems to solve it for some.
A similar fix exists, which involves editing and undoing on the enum definition's line.
Consider switching to numeric constants if this is a frequent problem.