Skip to main content
15-Moonstone
September 11, 2012
Question

Exporting results to Excel

  • September 11, 2012
  • 3 replies
  • 6230 views

I am running MathCAD 15 and Office 2007. I am trying to export results from a MathCAD calculation to an Excel workbook. MathCAD will not export the values and provides the error "The range value specified is invalid." There are two varibles that are exported, each to individual cells into a Excel worksheet. This is a multi sheet Excel macro enable work book. Is it possible to use the Insert Component to export varibles to a Macro-Enable Worksheet?

3 replies

1-Visitor
September 12, 2012

David Tietje wrote:

MathCAD will not export the values and provides the error "The range value specified is invalid."

Have you tried writing the result to a text file and having Excel read that file?

Do you have an example Mathcad file you can attach to you post?


19-Tanzanite
September 12, 2012

I don't think it should make any difference whether or not macros are enabled. How are you doing the export? Via the WRITEEXCEL function?

tietjee15-MoonstoneAuthor
15-Moonstone
September 12, 2012

I am trying to attached a zip with both the MathCAD and Excel files. I do not see the upload bottom. The Excel worksheet is macro-enabled. This is required to integrate with another program. The insert Component causes the error, and is highlighted in yellow. I am able to export the information using the WRITEEXCEL, which is highlighted in red.

regards,

19-Tanzanite
September 12, 2012

Click on "Use Advanced Editor" at the top right of the editor window, then you will see the upload button at the bottom left.

1-Visitor
September 12, 2012

Sometimes Mathcad does have problems writing ranges to Excel.

I'll have a look in the morning unless someone helps beforehand.

Mike