How to delete all the rows except header in an Excel workbook?

Kuldip

New Member
My goal is to copy and paste data from Excel 1 to Excel 2 but before doing that, I need to delete all the data, except headers from Excel 2. I really appreciate your help. Copying a collection with just 1 row doesn't work since it just append data and does not replace everything from excel.
 

Kuldip

New Member
Official Excel VBO doesn't have any action to delete rows, I can delete entire spreadsheet but not rows. Kindly elaborate a little on above?
 

Anant

New Member
I'm trying to delete the workbook (not worksheet) but that's not happening using MS excel VBO, can someone assist?
 
Hello Anant,
For different query, please use different thread.
Anyway, answering your question - Deleting workbook should be treated as deleting a file. You can use business object : "Utility - File Management" and Action : "Delete File" by providing the path of the file.

Regards
El Guapo
 
Top