Been trying to get vlookup to work in VBA, I can't and don't know why. I put the exact vlookup in a cell as a test and it works. I have tried activating and selecting the specific worksheet to no avail. here's the code:
Code_Goes_Here
Sub find_ingredients_in_list()
Range("j2").ClearContents
Range("j2") = "testing"
Sheets("input").Activate
food = WorksheetFunction.vlookup("olive", Range("j4:,k8"), 2, False)
Cells(24, 2) = food
End Sub
Code_Goes_Here
Having fought with this I think "match" might work better for my purpose but I would like to know why my vlookup isn't working. Thanks
DOH!!
