#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 184
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
converting email address names in a range of cells to real names John Excel Worksheet Functions 1 May 19th 10 03:44 PM
How to Delete blanks between a range and populate only the names inthe given range Yuvraj Excel Discussion (Misc queries) 2 November 4th 09 08:32 PM
COPYING FORMULA CONTAINING NAMES/RELATIVE RANGE NAMES Bricol Excel Discussion (Misc queries) 0 July 8th 08 03:54 PM
Selecting range in list of range names depending on a cell informa Courreges Excel Discussion (Misc queries) 2 June 19th 06 10:59 AM
range names Pedro Excel Worksheet Functions 1 November 9th 04 06:27 PM


All times are GMT +1. The time now is 08:57 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"