Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Group,
ActiveCell.FormulaR1C1 = "=VLOOKUP(""AMAT"",ClosesStock!C[-1]:C,2,FALSE)" Above works and is hard coded with ""AMAT"", but I am having a hard time substituting a variable into the Formula. The Variable is ThisSheet and am trying to get something like this to work: ActiveCell.FormulaR1C1 = "=VLOOKUP(" & ThisSheet & ",ClosesStock!C[-1]:C,2,FALSE)" but it fails for lack of the quote marks, it needs Text. Thanks, David |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
vlookup with a variable | Excel Programming | |||
Vlookup - Variable look_up value? | Excel Discussion (Misc queries) | |||
VLOOKUP using a range variable | Excel Programming | |||
vlookup using a variable | Excel Programming | |||
variable vlookup | Excel Programming |