I am trying to write the formula below to a cell using VBA but I am receiving a 1004 error. Strangely, if I write exactly the same string to the cell as text (i.e. without the "=") and then manually insert the "=" it works perfectly!
Are there any characters that might need escaping or am I missing something else?
Cheers
Beem
Code:
Cells(x, 4).Formula = "=COUNTIF(Dic!$B$2:$B$2226;B" & x & ")+COUNTIF(Dic!$F$2:$F$2226;B" & x & ")"
Are there any characters that might need escaping or am I missing something else?
Cheers
Beem