Posted to microsoft.public.excel.programming
|
|
How to pass arguments to vlookup in VBA
sorry, forgot the quotes
ActiveCell.Offset(0, 2).Formula = "=VLOOKUP(" & """" & xtenv & """" &
",CODE,2,FALSE)"
--
Gary
"mathewg" wrote in
message ...
Could some one pls tell me how to go about this ???
xtenv = activecell.value
ActiveCell.Offset(0, 2).Formula = "=VLOOKUP(xtenv,CODE,2,FALSE)"
I want to automatically lookup values in the active cell however the
above command does not get me the right answer... where could i be
wrong
thanks
--
mathewg
------------------------------------------------------------------------
mathewg's Profile:
http://www.excelforum.com/member.php...o&userid=30646
View this thread: http://www.excelforum.com/showthread...hreadid=503225
|