XLL+ Class Library (6.3)

CXllCom::OleGetWorksheet

Get a Worksheet by name

HRESULT OleGetWorksheet(
   LPCSTR pszWorkbook,
   LPCSTR pszWorksheet,
   LPDISPATCH* lpdisp
);

Parameters

pszWorkbook

Name of the workbook.

pszWorksheet

Name of the worksheet.

lpdisp

If the function is successful, a pointer to the Worksheet 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::OleGetWorksheets()