I would like to insert formula equation to worksheet with VBA code.
In a worksheet, this code works.
=COUNTIF(L2:L101; ">"&A1)
In VBA code, I've tried following code, which returning "FALSE".
Cells(3, 20).Formula = "=COUNTIF(L2:L101; ">"&A1)"
The problem here is that, when I enter above code line into VBA editor, it automatically adds extra space before and after '>'.
So the code will be like;
Cells(3, 20).Formula = "=COUNTIF(L2:L101; " > "&A1)"
How can I eliminate spaces?