XLL+ Class Library

CXllApp::GetSheetId

Get the sheet ID of a named sheet

[C++]
static DWORD GetSheetId(
   const char* pszSheetName
);
static DWORD GetSheetId(
   const char* pszBook,
   const char* pszSheet
);

Parameters

pszSheetName

The name of a sheet in "[book]sheet" format.

pszBook

The name of the workbook.

pszSheet

The name of the worksheet.

Return value

The sheet ID of the named sheet if successful; 0 if the sheet cannot be found.

Remarks

This function can be used to get the sheet ID of a named sheet. This ID can be used to construct references to cells.

Requirements

Header: xllplus.h

See Also

CXllApp Class | CXllApp Methods