How to deconstruct a list into spreadsheet
Posted: Wed Apr 13, 2005 7:17 pm
Hello everyone,
I have a question regarding the use of expressions returned from newlisp.dll to an Excel spreadsheet (thanks BTW for providing the Excel VBA "glue code" to newlisp.dll). Everything seems to work great, until I need to assign newlisp list components to cells of a spreadsheet. Is that possible? If so, then how?
For instance, say I have defined a function in newlisp called 'my-list-maker'. Then if I put in cell A1 '(my-list-maker <args>)' and the function call '=newlispeval(A1)' in another cell, I get the printed representation of the list in this cell (which can be rather long, as in my particular application). It would be nice to be able to say instead '=newlisp_destruct_value_vertically(A1)' and the list components could be put one-by-one in a vertical column starting with the cell containing the function call. This would be useful, say when one wants to use Excel to graph a list of numbers coming from newlisp.
I wonder if this is possible and I admit much ignorance regarding Excel -- perhaps this is why the solution eludes me. Thanks for any help! --Rick
I have a question regarding the use of expressions returned from newlisp.dll to an Excel spreadsheet (thanks BTW for providing the Excel VBA "glue code" to newlisp.dll). Everything seems to work great, until I need to assign newlisp list components to cells of a spreadsheet. Is that possible? If so, then how?
For instance, say I have defined a function in newlisp called 'my-list-maker'. Then if I put in cell A1 '(my-list-maker <args>)' and the function call '=newlispeval(A1)' in another cell, I get the printed representation of the list in this cell (which can be rather long, as in my particular application). It would be nice to be able to say instead '=newlisp_destruct_value_vertically(A1)' and the list components could be put one-by-one in a vertical column starting with the cell containing the function call. This would be useful, say when one wants to use Excel to graph a list of numbers coming from newlisp.
I wonder if this is possible and I admit much ignorance regarding Excel -- perhaps this is why the solution eludes me. Thanks for any help! --Rick