#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 169
Default 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

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



  #2   Report Post  
Posted to microsoft.public.excel.programming
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

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





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Match 2 Columns, Return 3rd, Differing Match Types Matt.Russett Excel Worksheet Functions 3 May 11th 10 10:45 AM
Lookup Formula: Return 1st match, then 2nd match, then 3rd match Scott Excel Discussion (Misc queries) 4 December 11th 09 05:50 AM
index(match) Wind Uplift Calculations (match four conditions) JMeier Excel Worksheet Functions 8 August 1st 08 01:45 AM
MATCH Multiple Criteria & Return Previous / Penultimate Match Sam via OfficeKB.com Excel Worksheet Functions 27 October 6th 07 01:39 AM
Lookup? Match? pulling rows from one spreadsheet to match a text f cjax Excel Worksheet Functions 3 July 21st 06 02:51 PM


All times are GMT +1. The time now is 09:59 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"