I am trying to create a VLOOKUP macro that prompts the user to select cells and ranges.
Basically I want to look up a cell value in one tab against a range in another tab and return a column the user selects.
So...This is what I want...
VLOOKUP(""USER SELECT LOOKUP value", "USER SELECT TABLE ARRAY", "USER SELECT COL INDEX NUM", FALSE)
I have this so far but nothing returns when the macro finishes running...
Subject = Application.Input box("select Subject to be looked up")
Sheet = Application.Input box("select tab/range")
Formula = "=VLOOKUP(""Subject"",""Sheet"",3,False)"
end sub