lexxie2013
Board Regular
- Joined
- Nov 28, 2013
- Messages
- 225
Hi all. Pls could someone explain what I'm doing wrong. If I have 'Yes' in Cell A1 and 'Yes' in any other cell in Column A, the MatchVenue.Row returns the second instance rather than the first. Is there an optional header parameter that I've overlooked. I've looked at Microsoft documentation but failed to find an answer. Any help would be much appreciated.
<code>
Dim MatchVenue As Range
VenueName = "Yes"
Set MatchVenue = ThisWorkbook.Sheets("Sheet1").Columns(1).Find(What:=VenueName, LookIn:=xlValues, LookAt:=xlWhole, MatchCase:=False)
MsgBox (MatchVenue.Row)
</code>
Thanks,
Steve.
<code>
Dim MatchVenue As Range
VenueName = "Yes"
Set MatchVenue = ThisWorkbook.Sheets("Sheet1").Columns(1).Find(What:=VenueName, LookIn:=xlValues, LookAt:=xlWhole, MatchCase:=False)
MsgBox (MatchVenue.Row)
</code>
Thanks,
Steve.