Rows.Add Method (Publisher)

Adds a new Row object to the specified Rows collection and returns the new Row object.


expression. Add(BeforeRow)

expression A variable that represents a Rows object.


Name Required/Optional Data Type Description
BeforeRow Optional Long The number of the row before which to insert the new row. If this argument is omitted, the new row is added after the existing rows. An error occurs if the value of this argument does not correspond to an existing row in the table.

Return Value



The following example adds a row before row three in the specified table.

Dim rowNew As Row 
Set rowNew = ActiveDocument.Pages(1).Shapes(1) _