Hello,
I have this bit into my code, that should return simple "Yes", "No" values present in the range.
All variables are defined, inclusion as Variant, Dest as String, details as Range.
The problem i am encountering is that when the lookup value is not present, the return value is a "Yes", which messes with the further logic of the code.
I can write a separate IF to check it, but was wondering if there is a more simple way to solve this.
Thanks.
I have this bit into my code, that should return simple "Yes", "No" values present in the range.
Code:
inclusion = Application.VLookup(Dest, details, 10, False)
All variables are defined, inclusion as Variant, Dest as String, details as Range.
The problem i am encountering is that when the lookup value is not present, the return value is a "Yes", which messes with the further logic of the code.
I can write a separate IF to check it, but was wondering if there is a more simple way to solve this.
Thanks.