C# – Loop through enum names in .Net

Ok, C# and .Net have features that people from the VBA world can only … dream about. In a way. I was recently taking a look at the Type.GetEnumNames()  function in .Net and I simply thought that it would be useful somehow to have it in VBA as well.


Thus, if you have ever wondered how the magic of printing the enum values looks like, you may do it by yourself with the following code:

That should be enough! 🙂

Tagged with: ,