Hey, guys. Anyone know of a way to check if two named ranges intersect? I could run a cell-by-cell check, but I'm looking for a more efficient approach. Any ideas?
try the intersect method of the application object.
(Found in online help after searching for intersect) LOL
Set isect = Application.Intersect(Range("rg1", Range("rg2")
If isect Is Nothing Then
MsgBox "Ranges do not intersect"
Else
isect.Select
End If
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.