When I run the following code, it returns “109” which representsa textbox. Here, txtDisplay is atextbox. I was hoping it would return thewords “Text Box” in the dialog window.
MsgBox txtDisplay.ControlType
I am trying to find a method, that can:
- Return the object type of an object withoutusing the code above, or
- Return the object type of an object using thecode above