Names.Item Method
Returns a single Name object from a Names collection.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Function Item ( _
Index As Object, _
IndexLocal As Object, _
RefersTo As Object _
) As Name
'Usage
Dim instance As Names
Dim Index As Object
Dim IndexLocal As Object
Dim RefersTo As Object
Dim returnValue As Name
returnValue = instance.Item(Index, IndexLocal, _
RefersTo)
Name Item(
Object Index,
Object IndexLocal,
Object RefersTo
)
Parameters
Index
Type: System.ObjectOptional Object. The name or number of the defined name to be returned.
IndexLocal
Type: System.ObjectOptional Object. The name of the defined name in the language of the user. No names will be translated if you use this argument.
RefersTo
Type: System.ObjectOptional Object. What the name refers to. You use this argument to identify a name by what it refers to.
Return Value
Type: Microsoft.Office.Interop.Excel.Name
Remarks
You must specify one, and only one, of these three arguments.