Hey, So i have just posted a thread about how to insert a formula via VBA in the desired column of my Table. The answer i got worked perfectly fine. But as soon as i wanted to replace the original formula with my formula it stopped working and i guess i know why.
the code which originally worked is as follows:
now i want to replace the
with
i guess it doesnt work because of the custom "text" added in the formula which is sepereated by the ".
what could a solution for this be?
the code which originally worked is as follows:
VBA Code:
Sub Xalova()
Dim myTbl As ListObject
Set myTbl = ActiveSheet.ListObjects("Teilbedarf")
myTbl.DataBodyRange.Cells(1, myTbl.ListColumns("Benennung").Index).Formula = "=SUM(G7:G26)"
End Sub
now i want to replace the
Excel Formula:
=SUM(G7:G26)
Excel Formula:
=[@Normteil]&" "&[@Norm]&IF(SUMPRODUCT(--([@Normteil]=Schraubenklassen))>0,"x"&[@Abmaße],"")
i guess it doesnt work because of the custom "text" added in the formula which is sepereated by the ".
what could a solution for this be?