VBA - vbext_ct_ClassModule faceid

S

steve

Regarding the default faceid (menu icon)
for the vba class module component type
(vbext_ct_ClassModule),
is it possible to assign a different faceid
to the component type?

For example, I have a COM add-in that
modifies the floating menu for
every class module (.cls) file
with items such as "CustomAction1",
CustomAction2, etc.

When the user performs "CustomAction1"
on the selected .cls file, I would like
to change the faceid of the .cls file
just acted upon.
(not the faceid of the menu item).

any info would be greatly appreciated.

steve
 
S

steve

-----Original Message-----
Regarding the default faceid (menu icon)
for the vba class module component type
(vbext_ct_ClassModule),
is it possible to assign a different faceid
to the component type?

For example, I have a COM add-in that
modifies the floating menu for
every class module (.cls) file
with items such as "CustomAction1",
CustomAction2, etc.

When the user performs "CustomAction1"
on the selected .cls file, I would like
to change the faceid of the .cls file
just acted upon.
(not the faceid of the menu item).

any info would be greatly appreciated.

steve
.
 
S

steve

after more digging around,
I found that the VBComponent object
has a IconState property that
will change the "glyph"/icon
of the class module.

Unfortunately, this feature is supported
on for vb 6 extensibility library, but
not the VBA extensibility 5.3 library.
 

Ask a Question

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.

Ask a Question

Top