BIGTONE559
Active Member
- Joined
- Apr 20, 2011
- Messages
- 336
RE: Application.Match via VBA NEED TRUE FALSE RESULT
I have a simple code however, i cannot get the result to render a TRUE or FALSE. The if Statement in my code doesn't declare whether a cell is TRUE or FALSE Please help!
I have a simple code however, i cannot get the result to render a TRUE or FALSE. The if Statement in my code doesn't declare whether a cell is TRUE or FALSE Please help!
Code:
Sub BlankMod()
Dim bRange As Range
Dim mRange As Range
Set bRange = Sheets("Bankdb").Range("D2:D" & Worksheets("Bankdb").Range("D2").End(xlDown).Row)
Set mRange = Sheets("Outs").Range("A1:A10")
Sheets("Outs").Select
For Each cell In mRange
If Not Application.Match(cell, bRange, 0) Then
MsgBox ("Great")
Else
MsgBox ("HORR REE BLAY")
End If
Next
End Sub