Erick Skrobot Erick Skrobot - 2 months ago 37
PHP Question

Clear spreadsheet using PHPExcel

How do I clear the sheet with PHPExcel? Something like Sheet.ClearContents in VBA.
All I could find was delete rows and columns and it's not useful for me as I need to clear entire sheet before writing data to the file.


You can remove the sheets and create a new one.