Match

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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

.................................................
 
try putting a period in front of Range

If Application.match(.Cells(i, 2), .Range("d1:d30"), 0) Then
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top