sakthi santhanam
New Member
Hi,
I am stumbling in between my work...
Here in the code, If I don't get the match then "Not Assigned" should be entered and if matches then the vlookup should give the respective value.
Is there any alternative way to find the vlookup if not match with the range.
Regards,
sakthi
I am stumbling in between my work...
Code:
wom = Application.WorksheetFunction.Match(vl6.Value, Sheet17.Range("A2:A" & Sheet17.UsedRange.Rows.Count), 0)
If wom Is Nothing Then
Sheet11.Range("I" & vl6.Row).Value = "Not Assigned"
Else
Sheet11.Range("I" & vl6.Row).Value = Application.WorksheetFunction.VLookup(vl6, bsr, 2, 0)
End If
Here in the code, If I don't get the match then "Not Assigned" should be entered and if matches then the vlookup should give the respective value.
Is there any alternative way to find the vlookup if not match with the range.
Regards,
sakthi