ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Match (https://www.excelbanter.com/excel-programming/319648-match.html)

Teresa

Match
 
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

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




Don Guillett[_4_]

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

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







All times are GMT +1. The time now is 08:09 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com