Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I am trying to write a piece of code that will enable me to validate two ranges to determine whether or not they overlap. I can determine fairly easily if one is contained wholly within the other but not if they only partially overlap. Any suggestions on how I could approach this problem would be appreciated! Thanks, Mark --- Message posted from http://www.ExcelForum.com/ |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
try If Intersect(range1, range2) Is Nothing Then 'no overlapping -- Regards Frank Kabel Frankfurt, Germany Hi, I am trying to write a piece of code that will enable me to validate two ranges to determine whether or not they overlap. I can determine fairly easily if one is contained wholly within the other but not if they only partially overlap. Any suggestions on how I could approach this problem would be appreciated! Thanks, Mark --- Message posted from http://www.ExcelForum.com/ |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Marky,
Intersect will do it If Not Intersect(rng1, rng2) Is Nothing Then ... -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Marky " wrote in message ... Hi, I am trying to write a piece of code that will enable me to validate two ranges to determine whether or not they overlap. I can determine fairly easily if one is contained wholly within the other but not if they only partially overlap. Any suggestions on how I could approach this problem would be appreciated! Thanks, Mark --- Message posted from http://www.ExcelForum.com/ |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Mark,
As an aside, what is your code for determining if one is contained within the other? -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Marky " wrote in message ... Thanks guys, that worked a treat! Mark --- Message posted from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
overlap printing | Excel Discussion (Misc queries) | |||
how copy formula that contains ranges so ranges do not overlap | Excel Worksheet Functions | |||
how can i networkdays date ranges where dates overlap | Excel Worksheet Functions | |||
DataLabel Overlap | Charts and Charting in Excel | |||
Show Overlap | Charts and Charting in Excel |