mlesniak001
MIS
this seems to be a simple question, but i don't know how to do this...
so here is the problem: within the pre-defined VBA constants there are names and coresponding values. When using the constant's name, you have easy access to the value. For instance, the simple command of:
Debug.Print Office.MsoShapeType.msoTextBox
returns the value of:
47
However, what I want to do is the reverse. Once I have the value and know in which specific set of enumerated constants that value exists, I want to decode / get the name of the constant. I would imagine that the code would be something like:
Debug.Print Office.MsoShapeType(47)
but that doesn't work. :-(
FYI: I am doing this as part of building an "inventory" of all objects within a powerpoint presentation including human readable information on the type of objects.
so here is the problem: within the pre-defined VBA constants there are names and coresponding values. When using the constant's name, you have easy access to the value. For instance, the simple command of:
Debug.Print Office.MsoShapeType.msoTextBox
returns the value of:
47
However, what I want to do is the reverse. Once I have the value and know in which specific set of enumerated constants that value exists, I want to decode / get the name of the constant. I would imagine that the code would be something like:
Debug.Print Office.MsoShapeType(47)
but that doesn't work. :-(
FYI: I am doing this as part of building an "inventory" of all objects within a powerpoint presentation including human readable information on the type of objects.