Set a reference to the VBA Extensibility library, and the search
the Object Browser for vbext_componenttype. You'll see that there
are 5 types: vbext_ct_ActiveXDesigner (=11), vbext_ct_ClassModule
(=2), vbext_ct_Document (=100), vbext_ct_MSForm (=3), and
vbext_ct_StdModule (=1).
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.