Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Is the active cell part of a named range
how do use VBA to determine whether or not the activecell is part of a range
named "Data" i.e., range("Data") spans from A1:J50 how can i return true on range("B5") is part os range("Data") TIA. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Is the active cell part of a named range
use the Intersect method
Sub Test() msgbox IsInRange(Range("B5"),range("Data")) End Sub Function IsInRange(test as range, target as range) as Boolean dim found as range set found = Intersect(Test,target) IsInRange = (NOT Found Is Nothing) End Function "Virginia" wrote in message ... how do use VBA to determine whether or not the activecell is part of a range named "Data" i.e., range("Data") spans from A1:J50 how can i return true on range("B5") is part os range("Data") TIA. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Conditional Formatting based on active Named Range; IF Function to VBA | Excel Worksheet Functions | |||
Referencing a named range based upon Range name entry in cell | Excel Worksheet Functions | |||
inserting a named range into new cells based on a named cell | Excel Discussion (Misc queries) | |||
VLookup Error in Part of a Named Range | Excel Worksheet Functions | |||
Test if Active Cell is in a named range | Excel Programming |