Hi
I have a repetitive task that i am trying to slove by a macro.
I have a cell with a number - lets say cell N4 = 5782.3
Now i would like to change the B4 Cell content to =IF($K4<>0,5728.3,0)
How do i do it?
I have tried the following:
Dim a As Double
a = ActiveCell.Value
ActiveCell.FormulaR1C1 = "=IF(RC4<>0,a,0)"
ActiveCell.Offset(1, 0).Range("A1").Select
But then i get in the cell IF($K4<>0,a,0)
Thanks
Amy
I have a repetitive task that i am trying to slove by a macro.
I have a cell with a number - lets say cell N4 = 5782.3
Now i would like to change the B4 Cell content to =IF($K4<>0,5728.3,0)
How do i do it?
I have tried the following:
Dim a As Double
a = ActiveCell.Value
ActiveCell.FormulaR1C1 = "=IF(RC4<>0,a,0)"
ActiveCell.Offset(1, 0).Range("A1").Select
But then i get in the cell IF($K4<>0,a,0)
Thanks
Amy