PRB: IVbaProcs::BindProcDisp Does Not Merge Type Information of Host Project Items

ID: Q244260


The information in this article applies to:
  • Microsoft Visual Basic for Applications (VBA) Software Development Kit (SDK), versions 5.0, 6.0, 6.1


SYMPTOMS

The IVbaProcs::BindProcDisp method can be used to retrieve an IDispatch interface pointer. This interface pointer can then be used to call Visual Basic for Applications (VBA) methods. It can also be used to retrieve type information for those methods through the IDispatch::GetTypeInfo() method.

However, for Host Project Items, the type information retrieved through IDispatch::GetTypeInfo() does not contain type information for user-defined methods (that is, those methods written in the Project Item's code pane in the VBA IDE).


CAUSE

The IVbaProcs::BindProcDisp method does not merge the type information of the Host Project Item with that of the user-defined methods in its code pane.


STATUS

This behavior is by design.

Additional query words: VBASDK

Keywords : kbSDKVBA kbGrpDSO kbDSupport
Version : winnt:5.0,6.0,6.1
Platform : winnt
Issue type : kbprb


Last Reviewed: November 17, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.