Thread: Match
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Don Guillett[_4_] Don Guillett[_4_] is offline
external usenet poster
 
Posts: 2,337
Default Match

try putting a period in front of Range

If Application.match(.Cells(i, 2), .Range("d1:d30"), 0) Then
--
Don Guillett
SalesAid Software

"teresa" wrote in message
...
Im trying to see if a range of cells is in a range:d1:d30,
there's something slightly wrong with my code, help much appreciated


With Worksheets("Proposals").
For i = 1 To 20
If(Application.match(.Cells(i, 2), Range("d1:d30"), 0)) Then

................................................