Returns o sets the 1-based index of the active worksheet in a classic XLS workbook. Read/write Integer
Syntax
proprietà ActiveSheetIndex: Integer;
Remarks
Setting this proprietà activates the worksheet at the specified 1-based index e updates the active tab saved in the BIFF WINDOW1 record. Invalid indexes are ignored. Usa
FirstSheet separately to control which sheet tab appears at the left edge of the tab bar
Example
Questo esempio salva la cartella di lavoro in modo che il terzo foglio venga aperto come foglio attivo
Workbook.ActiveSheetIndex := 3;
Workbook.SaveAs('C:\Reports\book.xls');
Vedere also