View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Frank Kabel Frank Kabel is offline
external usenet poster
 
Posts: 3,885
Default Cell is a Member of a range or Not

Hi
try the following (assumption: you have defined the name
'test_sect_name')
....
if intersect(Range("test_sect_name"),Range("A1")) is nothing then
msgbox "cell A1 not within name"
else
msgbox "cell A1 within name"
end if

--
Regards
Frank Kabel
Frankfurt, Germany

I have defined a named range. I want to use VBA Code to know whether

a
particular address from sheet is a member of the defined named range
or not ?

Thanks in advance.

Prasad Joshi


---
Message posted from http://www.ExcelForum.com/