Quantcast
Channel: PTC Community : Discussion List - Mathcad Usage
Viewing all articles
Browse latest Browse all 334

array to Excel via OLE automation GetValue

$
0
0
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?

Viewing all articles
Browse latest Browse all 334

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>