IGetVBAObject::GetObject method (vbinterf.h)
Gets a pointer to an interface on the VBA object.
Note The use of this method is no longer recommended because containers other than Visual Basic do not support
it.
Syntax
HRESULT GetObject(
[in] REFIID riid,
[out] void **ppvObj,
[in] DWORD dwReserved
);
Parameters
[in] riid
Specifies the interface to retrieve. Pass IID_IVBFormat to retrieve a pointer to the IVBFormat interface.
[out] ppvObj
Pointer to the interface.
[in] dwReserved
Reserved.
Return value
This method supports the standard return values E_INVALIDARG, E_OUTOFMEMORY, and E_UNEXPECTED, as well as the following:
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | vbinterf.h |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for