View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
JohnI JohnI is offline
external usenet poster
 
Posts: 6
Default Application.CounIf

Manish,

Try something like-

Application.CountIf (Range(ActiveCell.Offset(-1, 0), Range("A2"))) < 0


regards,

JohnI

"Manish" wrote in message
...
Hi all,

How can I use a formula in VB to something like:

Application.CountIf(Range(ActiveCell.offset(-
1,0):"A2"),ActiveCell)<0

To see whether th same text is there in the range i row
above active cell thru A2 with activecell text..

any help?

Thanks

Manish