Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
How can I find out if the ActiveCell is one of the cells in a named range? In
the SheetChange event, I want to take an action only if the cell that was just changed (Target parameter?) belongs to a certain named range. Thank you. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Check whether or not the Intersection of these 2 ranges is nothing or not: If Not Application(ActiveCell, Range( "<rangename")) Is Nothing then ''' do something End if -- Regards, Sébastien <http://www.ondemandanalysis.com "DesertCyclist" wrote: How can I find out if the ActiveCell is one of the cells in a named range? In the SheetChange event, I want to take an action only if the cell that was just changed (Target parameter?) belongs to a certain named range. Thank you. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Sebastienm. I think you meant Intersect() and not Application(). This
is great. I didn't know about this. Thanks, again! "sebastienm" wrote: Hi, Check whether or not the Intersection of these 2 ranges is nothing or not: If Not Application(ActiveCell, Range( "<rangename")) Is Nothing then ''' do something End if -- Regards, Sébastien <http://www.ondemandanalysis.com "DesertCyclist" wrote: How can I find out if the ActiveCell is one of the cells in a named range? In the SheetChange event, I want to take an action only if the cell that was just changed (Target parameter?) belongs to a certain named range. Thank you. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Yes sorry: Application.Intersect
Xl also has an Application.Union that can also be very useful. -- Regards, Sébastien <http://www.ondemandanalysis.com "DesertCyclist" wrote: Thanks Sebastienm. I think you meant Intersect() and not Application(). This is great. I didn't know about this. Thanks, again! "sebastienm" wrote: Hi, Check whether or not the Intersection of these 2 ranges is nothing or not: If Not Application(ActiveCell, Range( "<rangename")) Is Nothing then ''' do something End if -- Regards, Sébastien <http://www.ondemandanalysis.com "DesertCyclist" wrote: How can I find out if the ActiveCell is one of the cells in a named range? In the SheetChange event, I want to take an action only if the cell that was just changed (Target parameter?) belongs to a certain named range. Thank you. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
RANGE EXCEL copy cell that meets criteria in a range | Excel Worksheet Functions | |||
NEED VBA TO SELECT A CELL; NOTE THE CELL VALUE;COPYADJ CELL;FIND CELL VALUE IN A RANGE AND SO ON | Excel Programming | |||
Selecting range in list of range names depending on a cell informa | Excel Discussion (Misc queries) | |||
Change cell colour for a cell or range within a predefined range | Excel Programming | |||
Range.Find returns cell outside of range when range set to single cell | Excel Programming |