Hi,
I’m trying to insert a formula into a cell via VBA.
range(“d2”).Formula = “=IF(C2=”cd”,B2*0.66,B2)”
But I get this error message: Compile Error! Expected End of Statement.
What’s wrong?
Thanks!
Hi,
I’m trying to insert a formula into a cell via VBA.
range(“d2”).Formula = “=IF(C2=”cd”,B2*0.66,B2)”
But I get this error message: Compile Error! Expected End of Statement.
What’s wrong?
Thanks!
Notifications