AnsweredAssumed Answered

How to save an array to Excel?

Question asked by afke on Apr 23, 2018
Latest reply on Apr 23, 2018 by Susanne.Heip

Hi Guys, I hope someone can help me out! I would like to save the variable mMassIn to Excel:

mMassIn ::[150.25, 37.27, 194.08, 622.93, 596.64, 906.07]


This is my code:

initializations to "mmsheet.excel:grow;results.xlsx"

evaluation of [getsol(mMassIn)] as "[Sheet1$B6:B12]"


This is the error:

error 102: Incompatible types for parameters of "getsol"'.


So my question: how to read an array to excel?

Second question: If I run the code with just a value, not an array, then I also get an error on the first line.. How to solve this?