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!
Cells(x, 4).Formula = "=COUNTIF(Dic!$B$2:$B$2226;B" & x &...