matrixRange = "E2:H25"
matrixFormula = "=Append(Append(SUBSTITUTE(Input!B2,"",""),MatrixToList(Input!B3:B6,Input!C2:H2,Input!C3:H6),,,,1,1))"
addSheet.Range(matrixRange).Value = matrixFormula
After the execution, the formula in the range actually become:
"=@Append(Append(SUBSTITUTE(Input!B2,"",""),MatrixToList(Input!B3:B6,Input!C2:H2,Input!C3:H6),,,,1,1))"
it is the @ in the string that prevents excel from explaining.
Any idea?