Range Names

  • Thread starter Thread starter Helen Trim
  • Start date Start date
H

Helen Trim

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
 
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
 
Dim RangeName As String
RangeName = "Revenue"

If Not Intersect(Activecell, Range(RangeName)) Is Nothing Then
MsgBox "is"
Else
MsgBox "isn't"
End If
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top