Table of Contents

TXlsFile.GetSheetIndexFromID Method

Returns the ActiveSheet for a stored TExcelFile.SheetID. You can use this method together with TExcelFile.SheetID to save and restore an ActiveSheet when you are adding or removing sheets.

If the sheet ID doesn't exist, this method will return 0.

Syntax

Unit: FlexCel.XlsAdapter

function TXlsFile.GetSheetIndexFromID(const aSheetID: TGUID): Integer; override;

Parameters

<-> Parameter Type Description
const aSheetID TGUID

See also