Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
range of cells
how do you check if a cell falls under a a range of
cells. in other words, check if a cell is within a particular range. i tried using strcomp on the addresses but it didn't work. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
range of cells
if not intersect (Activecell,[b4:c11]) is nothing then msgbox "gotcha!" endif keepITcool < email : keepitcool chello nl (with @ and .) < homepage: http://members.chello.nl/keepitcool "del" wrote: how do you check if a cell falls under a a range of cells. in other words, check if a cell is within a particular range. i tried using strcomp on the addresses but it didn't work. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
range of cells
Del,
You can use the Intersect method to determine if a cell is in another range of cells. E.g., Dim Rng As Range Set Rng = Range("C3") If Not Application.Intersect(Rng, Range("A1:D4")) Is Nothing Then Debug.Print "In Range" Else Debug.Print "Out of range" End If -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "del" wrote in message ... how do you check if a cell falls under a a range of cells. in other words, check if a cell is within a particular range. i tried using strcomp on the addresses but it didn't work. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Summing a range of cells based on criteria in another range | Excel Worksheet Functions | |||
When entering data into a range of cells, select the entire range. | Excel Discussion (Misc queries) | |||
how to compute a range of cells based on another range of cells? | Excel Worksheet Functions | |||
how to compute a range of cells based on another range of cells? | Excel Worksheet Functions | |||
Count cells in one range based on parameters in another range | Excel Worksheet Functions |