Is there a way to count elements in a VBA enum?
问题 is there a proper way to count elements of an enum in VBA ? At the moment, I leave an enum value such as KeepThisOneHere in the following example Enum TestEnum ValueA ValueB ValueC KeepThisOneHere End Enum I use the last value to know the size... I don't like this solution, because I am not sure I have a guarantee the values will always be indexed the same way, and the code might be changed by a third party who might add values after this last special one, silently breaking the rest of the