someone know how to include a variable in a formular using macro?
eg.
Dim a As Double
range("a1").select
ActiveCell.FormulaR1C1 = "=Linest(range(cells(2,4),cells(a,4)),range(cells(2,5),cells(a,5)),true,true)"
this is not working and displayed the whole formular as a string.
any hlep will be very very appreciated.
Bookmarks