
Inserting rows into tables
This may sound like a silly one, but I am trying to insert rows into a
table. However, I want the row to appear at the bootm of the table, not in
the middle.
I am not actually calling this from Word, but from Delphi, but I am using
VBA to do it.
The code I am using is basically this:
Set myVar = ActiveDocument.Tables(1).Rows.Last
ActiveDocument.Tables(1).Rows.Add(BeforeRow:=myVar)
However, this inserts a row before the last row. All I want is some way of
telling it to stick it at the end instead, in effect ignoring the before row
command.
Can anyone tell me how to do this?
Thanks
Simon Keefe