To find "Class" for CreateObject method - TechRepublic
General discussion
April 6, 2006 at 11:05 PM
nirman123_doshi

To find “Class” for CreateObject method

by nirman123_doshi . Updated 20 years, 1 month ago

The syntax of “CreateObject” in VB/ VBA is
“CreateObject(Class As String, [ServerName As String])”
So if i want to use CreateObject method in VB or VBA for creating any control at runtime then I have to pass “Class” parameter. So how can I find a “Class” for a particular object. That is, if I want to find what is to be passed in “Class” parameter, if I want to create a TextBox using CreateObject method, then how can i find what is to be passed. Is there any code available to find.

This discussion is locked

All Comments