View Single Post
 
Old 09-19-2018, 07:30 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

In that case, try:
Code:
Sub FindRangeName()
Dim oName As Name, oRng As Range, oCell As Range
On Error Resume Next
For Each oName In ActiveWorkbook.Names
  Set oRng = Range(oName.Name)
  If Err = 0 Then
    With ActiveWindow.ActivePane.VisibleRange.Cells(1, 1)
      If Not Intersect(.Address, oRng) Is Nothing Then
        If oRng.Address = .EntireColumn.Address Then _
        MsgBox "The Name " & oName.Name & " spans " & .EntireColumn.Address
      End If
    End With
    Err = 0
  End If
Next
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote