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

IGetVBAObject