Hi guys, I'm vba beginner and I struggle with sending formula via VBA into a cell.. getting run-time error 1004
Actually this Formula works if I put it directly into excel
If I try to send via VBA something easy - like .formula = ""test"" , then this works.. so I guess there is problem somewhere in the formula ?
Thx, G.
Code:
ActiveCell.Formula = "=LEFT(TRIM(MID(A19952;SEARCH(""."";A19952)-2;99));SEARCH("" "";TRIM(MID(A19952;SEARCH(""."";A19952)-2;99)))-1)"
Actually this Formula works if I put it directly into excel
Code:
=LEFT(TRIM(MID(A19952;SEARCH(".";A19952)-2;99));SEARCH(" ";TRIM(MID(A19952;SEARCH(".";A19952)-2;99)))-1)
If I try to send via VBA something easy - like .formula = ""test"" , then this works.. so I guess there is problem somewhere in the formula ?
Thx, G.