Find Address of merged range VBA
Jay,
If Rng.MergeCells Then
MsgBox Rng.MergeArea.Cells(1, 1).Address
Else
MsgBox Rng.Cells(1, 1).Address
End If
HTH,
Bernie
MS Excel MVP
"jlclyde" wrote in message
...
I am trying to return the address of the top left cell in a merged
range. thsi is what I have so far and it is not even close to right.
Set Rng = Range("A52:BS52").Find(what:=ComboBox1.Text,
lookat:=xlWhole, _
Searchdirection:=xlPrevious, MatchCase:=False)
MsgBox Rng.MergeArea.Resize(1, 1).Address
Thanks,
Jay
|