Excel for WinRT
Insert Method (XLNamedRangeCollection)


The position where the object will be inserted.
The named range to insert in the collection.
Inserts an XLNamedRange object at a specific position in the collection.
Syntax
'Declaration
 
Public Function Insert( _
   ByVal index As System.Integer, _
   ByVal namedRange As XLNamedRange _
) As XLNamedRange
'Usage
 
Dim instance As XLNamedRangeCollection
Dim index As System.Integer
Dim namedRange As XLNamedRange
Dim value As XLNamedRange
 
value = instance.Insert(index, namedRange)
public XLNamedRange Insert( 
   System.int index,
   XLNamedRange namedRange
)

Parameters

index
The position where the object will be inserted.
namedRange
The named range to insert in the collection.

Return Value

A reference to the object if it was successfully added to the collection, or null if the object could not be added (usually because it overlaps another cell range already in the collection).
See Also

Reference

XLNamedRangeCollection Class
XLNamedRangeCollection Members

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback