View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Matt P.[_2_] Matt P.[_2_] is offline
external usenet poster
 
Posts: 14
Default ActiveCell.Formula

Hello,

Does anyone know how to (inVBA) create

Range("B5").Select
ActiveCell.FormulaR1C1 = "=Test1!R[-3]C[2]"
Range("A4").Select

Where Test1 can be a variable.

I want to be able to enter formulas in cells but I want to
be able to use variables in the formulas. I do not want
to use UDF's so that the user can see the actual formula
used to obtain the result when that particular cell is
active. Thank you.