Version

Item(String) Property

Gets the worksheet with the specified name.
Syntax
'Declaration
 
Public Overloads ReadOnly Property Item( _
   ByVal name As String _
) As Worksheet
public Worksheet Item( 
   string name
) {get;}

Parameters

name
The name of the worksheet to get.

Property Value

The worksheet with the specified name.
Exceptions
ExceptionDescription
System.InvalidOperationException A worksheet with the specified name does not exist in the collection.
Remarks

Worksheet names are compared case-insensitively.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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