XLL+ Class Library (6.3)

CXllApp::GetSheetId

Get the sheet ID of a named sheet

static DWORD GetSheetId(
   const char* pszSheetName
);
static DWORD GetSheetId(
   const wchar_t* pszSheetName
);
static DWORD GetSheetId(
   const char* pszBook,
   const char* pszSheet
);
static DWORD GetSheetId(
   const wchar_t* pszBook,
   const wchar_t* 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