Is there a way to get IntelliSense in own built COM classes in VBA?
E.g. in the example below I would like to get "Number" showing up, whenever I press on the dot (or ctrl+space for shortcut):
I suppose, if this is somehow resolved, I would also get some info concerning the public functions of the objects here:
Thus, what are the suggestions?
Suggestion 1:
Simple example could look like this.
Note:
[InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
indicates that an interface is exposed to COM as a dispinterface, which enables late binding only.[ClassInterface(ClassInterfaceType.None)]
means the CLR does not expose a class interface for this type. COM clients can call the members of this class using the methods from theIIntellisenseDemo
interface.