Partager via


ListRows.Add Method

Adds a new row to the list object. Returns a ListRow object.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Function Add ( _
    Position As Object _
) As ListRow
'Usage
Dim instance As ListRows
Dim Position As Object
Dim returnValue As ListRow

returnValue = instance.Add(Position)
ListRow Add(
    Object Position
)

Parameters

  • Position
    Type: System.Object

    Optional Integer. Specifies the relative position of the new row.

Return Value

Type: Microsoft.Office.Interop.Excel.ListRow

Remarks

If Position is not specified, a new bottom row is added.

See Also

Reference

ListRows Interface

ListRows Members

Microsoft.Office.Interop.Excel Namespace