I need to append new data to existing excel file created with ClosedXML.
How can I append to an excel file using ClosedXML? How can I get the row number of the last record and append to that or is there something other?
Thanks!
I need to append new data to existing excel file created with ClosedXML.
How can I append to an excel file using ClosedXML? How can I get the row number of the last record and append to that or is there something other?
Thanks!
Open the existing workbook and then use the
Last*Used
methods:And then use one of the following depending on your data:
For more information see the documentation under Inserting Data or Inserting Tables.