Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I want to check whether the ActiveCell is within a specific range. so when using the Change function I would know whether to handle it or not. How can I check if the target cell or the ActiveCell is within a certain range? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Use the Intersect function.
Steve "Yossi" wrote in message ... Hi, I want to check whether the ActiveCell is within a specific range. so when using the Change function I would know whether to handle it or not. How can I check if the target cell or the ActiveCell is within a certain range? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This kind of thing checks for changes to exactly one cell in A1:B99.
If target.cells.count 1 then exit sub if intersect(target,me.range("a1:B99")) is nothing then exit sub 'your code to do the work Yossi wrote: Hi, I want to check whether the ActiveCell is within a specific range. so when using the Change function I would know whether to handle it or not. How can I check if the target cell or the ActiveCell is within a certain range? -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Identifying duplicate values in a range | Excel Discussion (Misc queries) | |||
Identifying when all values in a range are the same. | Excel Discussion (Misc queries) | |||
Identifying a Selected Range in a Macro | Excel Discussion (Misc queries) | |||
vba, identifying a range | Excel Worksheet Functions | |||
Identifying Overlapping Dates within a range | Excel Worksheet Functions |