klyn.io.xlsx.WorkbookWorksheets.indexOf
method
public override indexOf(item as Worksheet, start as Int = 0) as Int:
Description

Returns the first index containing the worksheet reference.

Parameters
ParameterDescription
itemWorksheet to locate.
startZero-based position where the search starts.
Returns

Matching index, or -1 when absent.

Example
index = workbook.worksheets.indexOf(sheet)