![]() |
#4
|
||||
|
||||
![]()
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] |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Picture attached. Need one column to return sum of another column. | IRHSAM | Excel | 3 | 11-18-2017 01:21 AM |
![]() |
danpbphoto | Word | 1 | 06-25-2015 07:43 PM |
Return Sum value of one column from cells not blank in another column | zulugandalf | Excel | 3 | 08-14-2014 03:37 AM |
![]() |
pdfaust | Excel | 2 | 02-03-2011 03:02 PM |
![]() |
WaltR | Word | 2 | 12-24-2010 11:33 AM |