Hi!
I'm getting a little trouble inserting a simple formula through VBA
CODE:
The formula is in portuguese but the basis is: if both cells H2 and G2 are numbers, then 1111, else 2222.![]()
Please Login or Register to view this content.
I copied the formula straight from the sheet and pasted it in the VBA code as a string
When I run it I get an "application-defined or object-defined error"
Am I using the .Formula propertyincorrectly? How can I solve this?
Thanks in advance!
Bookmarks