Is it possible to delete and insert multiple rows within a table? Let's say I wanted to delete a range of rows, for example 210-560, 10-11 etc. Is it possible to do it within one line as I have in the example below, or will I need to create a loop with a range of numbers in order to delete a range?
C#
xlWorkBook.Worksheets["Sheet1"].ListObjects["Table1"].ListRows(11,12).Range.Delete();
xlWorkBook.Worksheets["Sheet1"].ListObjects["Table1"].ListRows(11,12).Range.InsertRowRange();
While using VBA one is able to use a simple method like this:
Rows("210:560").Delete
Rows("11:12").EntireRow.Insert