Gets the position of the sheet with the specified name in the collection.
'Declaration
Public Overloads Function IndexOf( _
ByVal As System.String _
) As System.Integer
'Usage
Dim instance As XLSheetCollection
Dim name As System.String
Dim value As System.Integer
value = instance.IndexOf(name)
public System.int IndexOf(
System.string
)
Parameters
- name
- Name of the object to look for (case-insensitive).
Return Value
The index of the sheet in the collection, or -1 if the sheet can't be found in the collection.