How to delete Row[i]?


I want to delete a row which I choosed according my arithmetic, I used the command: excel.Worksheets[“Sheet1”].Cells.Rows.RemoveAt(3);
but it did not work, I wonder is there any effective method to do this?
Thank you!


I also used: excel.Worksheets[“Sheet1”].Cells.DeleteRow(3);
it still did not work!


Please use


It deletes row at 4. Row index parameter in DeleteRow method is zero based.


it didnot change anything!
My codeline is:
Excel excel=new Excel();


Could you email me your file?