XLL+ Class Library (6.3)

CXllCom::OleGetWorksheetWorkbook

Get the value of Worksheet.Parent

static HRESULT OleGetWorksheetWorkbook(
   LPDISPATCH dispWorksheet,
   LPDISPATCH* lpdisp
);

Parameters

dispWorksheet

Worksheet object.

lpdisp

If the function is successful, a pointer to the workbook object will be placed here. It is the responsibility of the caller to Release() it.

Requirements

Header: xlpcom.h

See Also

CXllCom Class | CXllCom Methods | CXllCom::OleGetRangeWorksheet() | CXllCom::OleGetRangeAddress()