I want to write from my form (in C#) to an excel spread sheet and delete certain rows if blank.
I can write perfectly fine to a speadsheet and save it, but lets say the user entered data into row a1, a2, a3, and a4, I now want to delete all the rows in between a4 and a29.
All I need is to find out how to delete a certain range of cells.
Thanks
You can do it using a Range Object. I assume here that you are using Excel interop.
Let say you have your book open, then set the range then delete it
It should look something like this