Is it possible to place a variable, that is defined in a module, into a formula that is pasted into a cell on a worksheet?
Dim intColRef as Interger
intColRef = 5
ActiveCell.Offset(0, 6).Range("A1").Select
ActiveCell.FormulaR1C1 = "=RC[5]"
Instead
ActiveCell.FormulaR1C1 = "=RC[intColRef]"
Can the value of the variable be carried out to this formula in the cell?
Thanks, Numbers
Dim intColRef as Interger
intColRef = 5
ActiveCell.Offset(0, 6).Range("A1").Select
ActiveCell.FormulaR1C1 = "=RC[5]"
Instead
ActiveCell.FormulaR1C1 = "=RC[intColRef]"
Can the value of the variable be carried out to this formula in the cell?
Thanks, Numbers