I can't seem to move data from a MathCAD v12a array back into Excel 2002 SP1 using the "GetValue" method of the OLE automation interface.
However, I can transfer single values back into Excel with no problem (such as is demonstrated in the thermocouple quicksheet example) thus:
Range("MyRange").value=MyMcadWorksheet.GetValue("MyVariableName")
But I get the following error message if I try to move an array by setting MyVariableName to the name of an array...
Runtime error 1004 "Application-defined or object-defined error"
I get the same error regardless of the size of "MyRange."
So....how do I pass an array of real numbers back to Excel using OLE automation?
However, I can transfer single values back into Excel with no problem (such as is demonstrated in the thermocouple quicksheet example) thus:
Range("MyRange").value=MyMcadWorksheet.GetValue("MyVariableName")
But I get the following error message if I try to move an array by setting MyVariableName to the name of an array...
Runtime error 1004 "Application-defined or object-defined error"
I get the same error regardless of the size of "MyRange."
So....how do I pass an array of real numbers back to Excel using OLE automation?