如何可靠地向下移动Word表格中的行?
这是表格的结构。请注意,第一列和第二列都可以有多行和多段。在包含多段落单元格的Word表格中向下移动一行
Rule ID 1
Logic Date must be equal to or greater than 01-Jan-2012
Discrepancy Date is before 01-Jan-2012
message
Test case 1.1 Create form where Date is before 01-Jan-2012
Verify discrepancy message appears.
Print form.
Test case 1.2 Create form where Date is equal to 01-Jan-2012.
Verify no discrepancy message appears.
Print form.
Test case 1.3 Create form where Date is after 01-Jan-2012.
Verify no discrepancy message appears.
Print form.
我已经尝试了许多方法向下移动表格。
当我试着Selection.MoveDown
与unit:=wdLine
(下图)我遇到了问题,当列1包含自动换行。
Selection.MoveDown unit:=wdLine, Count:=1, Extend:=wdMove
当我试图Selection.MoveDown
与unit:=wdParagraph
(下同),我遇到了问题,当第2列含有多个段落。
Selection.MoveDown unit:=wdParagraph, Count:=3
unit:=wdRow
并不似乎是Selection.MoveDown
一个有效的参数。
Selection.Cells(1).RowIndex
是只读参数
有谁知道一个简单的方法来同时将处理下移表中的一行的两个词在第1列和第2列的多个段落换行?