Yes, this is my problem. When I open the corrupted file in Excel, it tells me that it has removed the affected table to repair the file. When I do the same operation with OLE automation, OLE will delete the rows but ensures that there is at least one table row left. As you proposed, I will adapt the program and ensure that there always remains at least one row.