XLL+ Class Library (7.0)

CXllCom::OleGetRange

Get a Range

HRESULT OleGetRange(
   LPCSTR pszWorkbook,
   LPCSTR pszWorksheet,
   const CXlRef& xlref,
   LPDISPATCH* lpdisp
);

Parameters

pszWorkbook

Name of the workbook.

pszWorksheet

Name of the worksheet.

xlref

Rectangular range reference

lpdisp

If the function is successful, a pointer to the Range 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::OleGetWorkbook() | CXllCom::OleGetWorksheet()