HotXLS-dokumentation Innehåll Startsida Översikt TGridToXLS IXLSWorkbook Startsida Innehåll Översikt

Activate metod

Makes the specified sheet the active sheet. Equivalent to clicking the sheet's tab

Syntax

procedure Activate;

Exempel

This example creates a summary sheet, makes it the active sheet, and saves the workbook so Excel opens on that sheet
var Summary: TXLSWorksheet; begin Summary := Workbook.Worksheets.Add; Summary.Name := 'Summary'; Summary.Range['A1', 'A1'].Value := 'Monthly summary'; Summary.Activate; Workbook.SaveAs('C:\Reports\summary.xls'); end;

Se även

IXLSWorkbook.ActiveSheetegenskap
TXLSWorksheet.Selectmetod
TXLSWorksheets.Addmetod Copyright © 2010-2026 losLab Software