How to add worksheet after the last sheet of the workbook?

Viewed 17812

I'm generating an Excel sheet with Delphi, but the problem I'm facing is that when I use this code:

Workbook.Sheets.Add;

the new sheet is added before the currently selected worksheet:

enter image description here

Does anyone know how to add a worksheet after the last sheet of the workbook ?

3 Answers
Related