Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Range Names
This works, though it might not be the most elegant solution: Dim RangeName As String RangeName = "Revenue" If ActiveCell.Column = Range(RangeName).Column And ActiveCell.Row = Range(RangeName).Row Then MsgBox "is" Else MsgBox "isn't" End If HTH Helen |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Range Names
Hi Helen,
what are you after? Maybe, you'd have a look at "Intersect-Method" in VBE-Help. This works, though it might not be the most elegant solution: arno |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Range Names
Dim RangeName As String
RangeName = "Revenue" If Not Intersect(Activecell, Range(RangeName)) Is Nothing Then MsgBox "is" Else MsgBox "isn't" End If -- HTH RP "Helen Trim" wrote in message ... This works, though it might not be the most elegant solution: Dim RangeName As String RangeName = "Revenue" If ActiveCell.Column = Range(RangeName).Column And ActiveCell.Row = Range(RangeName).Row Then MsgBox "is" Else MsgBox "isn't" End If HTH Helen |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
converting email address names in a range of cells to real names | Excel Worksheet Functions | |||
How to Delete blanks between a range and populate only the names inthe given range | Excel Discussion (Misc queries) | |||
COPYING FORMULA CONTAINING NAMES/RELATIVE RANGE NAMES | Excel Discussion (Misc queries) | |||
Selecting range in list of range names depending on a cell informa | Excel Discussion (Misc queries) | |||
range names | Excel Worksheet Functions |