Name

Application.Names([index])

Synopsis

Returns the collection of named ranges in the active workbook. The following code displays a table of named ranges:

Sub TestNames(  )
    Dim n As Name
    Debug.Print "Name", "Address"
    For Each n In Names
        Debug.Print n.Name, n.RefersTo
    Next
End Sub

Get Programming Excel with VBA and .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.