XLL+ Class Library (6.3)

CXllCom::OleGetWorkbook

Get a member of the Application.Workbooks collection by name

HRESULT OleGetWorkbook(
   LPCSTR pszWorkbook,
   LPDISPATCH* lpdisp
);

Parameters

pszWorkbook

Name of the workbook.

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::OleGetWorkbooks()