删除excel表中的行时出现问题

时间:2018-03-27 11:16:26

标签: excel office365 excel-addins

我正在使用excel的新办公室web插件并以编程方式操作excel表。

在某些奇怪的情况下,根据表位置,无法删除表的行。

例如,如下图所示,当删除第一个表中的行时,错误是“这不起作用,因为它会在工作表的表格中移动单元格。”

Error when removing the row in the first table

在下面的情况下没有任何错误,我不确定第一个用例有什么问题。 The case where there is no any error when removing rows

和这个

Other case where there is no any error when removing rows

1 个答案:

答案 0 :(得分:2)

这是因为在第一种情况下,删除其中一行将移动第二个表的部分行(前两列将向上移动一行)。在其他情况下,从第一个表中删除行只会向上移动空单元格,而不会影响其他表格。