Delete XLS sheet


I need to be able to delete (not clean) an xls sheet and keep the others in ab xls document.
I cannot fount the way with TadvGridexcelIO. Is it possible? Or with another TMS component?

Also, now I'm adding sheets by using:
proj is file name
i is sheet number
What means the '-1'?

Thanks for your help ;-)

TAdvGridExcelIO has no direct method to delete a sheet. It can only export to an existing sheet or to a new sheet it creates. You could overwrite an existing sheet or alternatively, for a larger set of functions to deal with XLS files, see TMS Flexcel: