Hello
I want to change a cell formula when a button pressed and The formula must have an if statement!
I have tried this code but an 1004 error occurs.
[VBA]Private Sub CommandButton1_Click()
t = "=IF(5>=2;1;7)"
Cells(1, 1) = t
End Sub[/VBA]
thanks