View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
mathewg mathewg is offline
external usenet poster
 
Posts: 1
Default How to pass arguments to vlookup in VBA





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