To get the following formula in a cell (example N1912 but it's always the 3rd row below the lastrow)
I'm using the code below. But the result is TRUE instead of 0 when OndergrensOnderwaarde < 500 and 25 when the value >+ 500
OndergrensOnderwaarde = 500.
The value of it is in the .offset(2,13)
I've tried a lot of combinations and did a lot of research on Google but can't figure it out.
Can you please help?
Excel Formula:
= if(N1912 > 500, 0, 25)
I'm using the code below. But the result is TRUE instead of 0 when OndergrensOnderwaarde < 500 and 25 when the value >+ 500
OndergrensOnderwaarde = 500.
The value of it is in the .offset(2,13)
VBA Code:
.Offset(3, 13).Formula = "=if(" & .Offset(2, 13).Address >= " & OndergrensOrderwaarde ,0 , 25)"
I've tried a lot of combinations and did a lot of research on Google but can't figure it out.
Can you please help?