CWalsh87
Technical User
- Dec 15, 2010
- 16
Hi, this is my first post on the forum, although the forums been very helpful over the last few months. I have however searched and cannot find an answer to my question.
I have some VBA code which inserts a formula (using FormulaR1C1) into a cell. the problem is, the formaula is getting inserted with all the correct refences in place, but until i go into the cell, press "F2" then enter, the formula does not calculate.
The cell is formatted in "General"
Here is the VBA code:
Activecell.FormulaR1C1 = "=if(iserror(match(RC[+3],'Product Type'!A:A,0)),"""",RC[+3])"
As i've said, all the references are correct, but until entering the cell, it's as if excel see's the formaula as text.
Thanks in advance!
Chris
I have some VBA code which inserts a formula (using FormulaR1C1) into a cell. the problem is, the formaula is getting inserted with all the correct refences in place, but until i go into the cell, press "F2" then enter, the formula does not calculate.
The cell is formatted in "General"
Here is the VBA code:
Activecell.FormulaR1C1 = "=if(iserror(match(RC[+3],'Product Type'!A:A,0)),"""",RC[+3])"
As i've said, all the references are correct, but until entering the cell, it's as if excel see's the formaula as text.
Thanks in advance!
Chris