Xceed Workbooks for .NET v2.0 Documentation
Insert(Int32,String) Method


Xceed.Workbooks.NET Assembly > Xceed.Workbooks.NET Namespace > WorksheetCollection Class > Insert Method : Insert(Int32,String) Method
The index that corresponds to the location where the new Worksheet will be placed.
The Name of the Worksheet that will be added.
Uses an index as the target location.
Syntax
'Declaration
 
Public Overloads Function Insert( _
   ByVal destinationWorksheetIndex As Integer, _
   Optional ByVal worksheetName As String _
) As Worksheet
'Usage
 
Dim instance As WorksheetCollection
Dim destinationWorksheetIndex As Integer
Dim worksheetName As String
Dim value As Worksheet
 
value = instance.Insert(destinationWorksheetIndex, worksheetName)

Parameters

destinationWorksheetIndex
The index that corresponds to the location where the new Worksheet will be placed.
worksheetName
The Name of the Worksheet that will be added.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

WorksheetCollection Class
WorksheetCollection Members
Overload List