Home » excel » office365 – Issue with removing rows in excel table

office365 – Issue with removing rows in excel table

Posted by: admin May 14, 2020 Leave a comment

Questions:

I was working with new office web add-in for excel and manipulating the excel tables programmatically.

There are some strange situations where depending on table location it is not possible to delete the rows of the table.

For example as shown in an image below, when removing row in the first table the error is “This won’t work because it would move cells in a table on your worksheet.”

Error when removing the row in the first table

In cases below there is no any error, I am not sure what is wrong with first use case.
The case where there is no any error when removing rows

and this

Other case where there is no any error when removing rows

How to&Answers:

It’s because in the first case removing one of the rows would move part of the rows of the second table (the first two columns would move up one row). In your other cases removing the row from the first table would only move up empty cells, not affecting the other tables.