Can someone please advise me on the syntax needed to translate a VLOOKUP statement from a formula to some IF or ISNA statements. My goal is to us VLOOKUP to compare data from 2 worksheets for congruency. Essentially, this formula can be applied to one cell.
VLOOKUP(CheckCell, CheckRange, 1, False).
I am trying to achieve this:
If(VLOOKUP(CheckCell, CheckRange,1,False)) = "true" Then
MsgBox ("No errors")
Else
If(VLOOKUP(CheckCell, CheckRange,1,Flase)) = "false" then
MsgBox ("You have errors")
EndIf
End Sub
I am confused on how the formula would translate into VBA code. Thanks for any advice. I love this site!!
VLOOKUP(CheckCell, CheckRange, 1, False).
I am trying to achieve this:
If(VLOOKUP(CheckCell, CheckRange,1,False)) = "true" Then
MsgBox ("No errors")
Else
If(VLOOKUP(CheckCell, CheckRange,1,Flase)) = "false" then
MsgBox ("You have errors")
EndIf
End Sub
I am confused on how the formula would translate into VBA code. Thanks for any advice. I love this site!!