Hello,
I'm trying to put a sum formula in a cell. The formula has some variables and the result comes with an unwanted '@'
My code:
Dim rowbasis As Integer
rowbasis=Range("D1").Value
Range("M" & rowbasis + 1).Formula = "=som($M$5:M" & rowbasis & ")"
Given that D1 has the value 467, this gives in the cell M468 following:
=@ som($M$5:M467)
I don't want this @. What am I doing wrong?
Kind regards,
Bart
I'm trying to put a sum formula in a cell. The formula has some variables and the result comes with an unwanted '@'
My code:
Dim rowbasis As Integer
rowbasis=Range("D1").Value
Range("M" & rowbasis + 1).Formula = "=som($M$5:M" & rowbasis & ")"
Given that D1 has the value 467, this gives in the cell M468 following:
=@ som($M$5:M467)
I don't want this @. What am I doing wrong?
Kind regards,
Bart