HotXLS Docs

ActiveSheet property

Returns an object that represents the active sheet in the specified Workbook. Returns Nothing if no sheet is active. Read-only. Use ActiveSheetIndex or Activate to choose the active sheet, and use FirstSheet to choose the first visible tab in the workbook tab bar.

Syntax

property ActiveSheet: IXLSWorksheet;

Example

This example sets the name of the active sheet.

Workbook.ActiveSheet.Name := 'NewName';