View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
[email protected] St0ned0g1@hotmail.com is offline
external usenet poster
 
Posts: 1
Default Finding if a cell is within a Range

i have a range (A1:C10) set to a variable "R" and i have a
cell set to a variable "C" (First E.I. B5, Second E.I. D5)

i need to know if C is within R

i have tried
Set NewC = Application.Intersect(R, C)

First E.I. it works good, no probs
But on the second E.I. NewC = nothing

Currently I have an error handler working with the cell
that is out side the range but their has to be a better
way to do this any ideas?