Thread: Text in formula
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
diepvic diepvic is offline
external usenet poster
 
Posts: 31
Default Text in formula

I need to assign a formula for cell A1 as below:
Range("A1") .formula = "=Match(""USD"", A:A, 0)"

However, the lookup_value (USD) is a variable, named Ccy (currency). How
should I change the code above to replace the USD with the variable Ccy?

Many thanks!