I'm trying run the following line in a VBA script:
Sheets("sheet1").Range("C13").formula = "=IF(ISERROR(GETPIVOTDATA(""Beloeb"";LikviditetEgenkapitalPivot!$A$3;""Dato"";$B2022;""Dimm4"";C$11))=TRUE;0;(GETPIVOTDATA(""Beloeb"";LikviditetEgenkapitalPivot!$A$6;""Dato"";$B2022;""Dimm4"";C$11)))"
I'm getting an "Application-defined or object-defined error"
I've been looking at the similar questions below (and followed the guide) - but I'm still in "dead water"
I've also tried to use the "chr(34)" method.
Any suggestions?
Inserting double quotes string within formula within VBA (Excel
VBA Application Defined or Object-Defined Error with Formula