MakeSheetActive procedure
Prototype: |
procedure MakeSheetActive(const SheetName :string); |
|
Description: |
Sets the sheet of the SheetName active (on top) . |
|
Syntax: |
xls.MakeSheetActive('MySheet'); |
|
Part |
Description |
|
xls |
Variable declared as an instance of the TExcelWrapper class |
|
Return value: |
none |
|
See also:
AddSheet , MakeSheetActive , ClearSheet , Complex example
Example:
Var
Row, Rows, Cols:integer;
xls :TExcelWrapper;
Begin
{document preparation}
//...
{managing worksheets}
xls.AddSheet('My first sheet',true);
xls.SetValue(1,1,'My first sheet','ColCaption','','');
xls.AddSheet('My second sheet',true);
xls.SetValue(1,1,'My second sheet','ColCaption','','');
xls.AddSheet('My third sheet',true);
xls.SetValue(1,1,'My third sheet','ColCaption','','');
xls.ClearSheet('My first sheet'); xls.ClearSheet
xls.MakeSheetActive('My second sheet' );
{document saving / previewing}
//...
End.
© 2024 IFER-Monitoring and Mapping Solutions