+ Reply to Thread
Results 1 to 2 of 2

Thread: Find Cell Names within a Range

  1. #1
    Registered User
    Join Date
    08-26-2011
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2007
    Posts
    3

    Exclamation Find Cell Names within a Range

    I am in need of extracting all the Cell Names/Variables within a given Range. For example, what cell names refer to any of the cells within the range of A1:C10?

    any help would be greatly appreciated

  2. #2
    Forum Guru Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    MS Excel 2010
    Posts
    2,247

    Re: Find Cell Names within a Range

    Sub CellNames()
    Dim nme As Name
    
        With ActiveSheet
        
            For Each nme In .Parent.Names
        
                If nme.RefersToRange.Parent.Name = .Name Then
                
                    If Not Intersect(.Range("A1:C10"), nme.RefersToRange) Is Nothing Then
                    
                        MsgBox nme.Name & " - " & nme.RefersToRange.Address
                    End If
                End If
            Next nme
        End With
    End Sub

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0