XLL+ Class Library (6.3)

CXlOper::GetSheetId

Returns the SheetId of a CXlOper containing a reference

DWORD GetSheetId( ) const;

Return Value

32-bit integer value representing the unique identifier assigned to the worksheet by Excel. This value remains the same throughout the life of the worksheet object. It is reassigned each time the spreadsheet is opened.

Throws an exception of type CXlBadOperTypeException if the CXlOper is not a reference.

Remarks

For a CXlOper that contains a reference (either single or multiple) this function returns the SheetId.

The function throws an exception of type CXlBadOperTypeException if the object does not contain a single or multiple reference.

Requirements

Header: xllplus.h

See Also

CXlOper Class | CXlOper Methods | CXllApp::GetSheetId()