Docs HotXLS

ActiveSheetIndex-property

Renvoie or sets the 1-based index of the active worksheet in a classic XLS workbook. Read/write Integer

Syntaxe

property ActiveSheetIndex: Integer;

Remarques

Définir cette propriété active la feuille à l'index basé sur 1 spécifié et met à jour l'onglet actif enregistré dans l'enregistrement BIFF WINDOW1. Les index invalides sont ignorés. Utilisez FirstSheet separately to control which sheet tab appears at the left edge of the tab bar

Exemple

Cet exemple enregistre le classeur pour que la troisième feuille s'ouvre comme feuille active

Workbook.ActiveSheetIndex := 3;
Workbook.SaveAs('C:\Reports\book.xls');

Voir aussi