Am looking for a macro which would give me in message boxes all named
range & address in my active sheet one after the other & finally select
them - something similar as macro below.
Sub FindMergedAreas()
Dim d As Range, myCell As Range
Set d = Nothing
For Each myCell In ActiveSheet.UsedRange
If myCell.MergeCells Then
If d Is Nothing Then
Set d = myCell.MergeArea
MsgBox "First merged area is " & myCell.MergeArea.Address
Else
If Intersect(d, myCell.MergeArea) Is Nothing Then
MsgBox "Another merged area is " & myCell.MergeArea.Address
End If
Set d = Union(d, myCell.MergeArea)
End If
End If
Next myCell
If Not d Is Nothing Then d.Select
End Sub
Can anybody help pls.
Thxs
Bookmarks