Am trying to develop some code that will input a vlookup formula into a spreadsheet. Because the data will vary the lookup cell in the Vlookup formula will vary. In my sample data below am using the UCI field as the lookup value (E1) in this case. Am trying to have the user input the cell location and then give it a range name to be used in the vba code. While that works for the lookup table it does not seem t work for the lookup value. Probably a very obvious error. Any help is appreciated. Thanks
CIN HCP Ready Date UCI
9175 190 Y 4/1/2016 6814336
97506 150 Y 4/1/2016 8088152