NamedRange.ListNames Method
Pastes a list of all displayed names onto the worksheet, beginning with the first cell in the NamedRange control.
Namespace: Microsoft.Office.Tools.Excel
Assembly: Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
Syntax
'Declaration
Function ListNames As Object
Object ListNames()
Return Value
Type: System.Object
Remarks
Use the Names property to return a collection of all the names on a worksheet.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.