PC Review


Reply
Thread Tools Rate Thread

is current cell within a named range

 
 
Cinque Terra
Guest
Posts: n/a
 
      13th Jun 2008
Is there a clever way to test if the current cell is within a multi-column,
multi-row range?

Thanks in advance!
 
Reply With Quote
 
 
 
 
Gary Keramidas
Guest
Posts: n/a
 
      13th Jun 2008
you can give this a try:

Sub test()
If Not Intersect(ActiveCell, Range("test")) Is Nothing Then
MsgBox ActiveCell.Address & " is within " & Range("test").Name
Else
'do nothing
End If
End Sub

--


Gary


"Cinque Terra" <(E-Mail Removed)> wrote in message
news:83EE3A18-148D-4A58-9CC2-(E-Mail Removed)...
> Is there a clever way to test if the current cell is within a multi-column,
> multi-row range?
>
> Thanks in advance!



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
make a named range with an array not using a workseet cell range John S. Microsoft Excel Misc 1 12th Nov 2010 10:41 PM
make a named range with an array not using a workseet cell range John S. Microsoft Excel Misc 0 12th Nov 2010 06:05 PM
make a named range with an array not using a workseet cell range John S. Microsoft Excel Worksheet Functions 0 12th Nov 2010 06:05 PM
Selecting a named range, the name of the named range is in a cell Luc Microsoft Excel Programming 6 13th Jan 2010 07:35 PM
inserting a named range into new cells based on a named cell =?Utf-8?B?UGV0ZXIgUy4=?= Microsoft Excel Misc 1 4th Jun 2006 03:53 AM


Features
 

Advertising
 

Newsgroups
 


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