I have a problem.
I want to insert the following into a single cell using VBA:
=if(M2<=K2;M2;0)
I have tried:
ActiveCell.Formula = "=IF(M2<=K2;M2;0)"
But gets an error:
Run-time error '1004':
Application-defined or object-defined error
I have a problem.
I want to insert the following into a single cell using VBA:
=if(M2<=K2;M2;0)
I have tried:
ActiveCell.Formula = "=IF(M2<=K2;M2;0)"
But gets an error:
Run-time error '1004':
Application-defined or object-defined error
Last edited by Freakazoid; 10-22-2010 at 01:35 AM.
Try to change ';' with comma:
Regards,ActiveCell.Formula = "=IF(M2<=K2,M2,0)"
Antonio
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks