Although you can import and export Excel data files using the File Read/Write and other components, you can use the Excel component to exchange data between Mathcad and Excel and use Excel’s functionality. For example, you may have some values in Mathcad that you want to send to Excel, use Excel for some manipulation, and send values back to Mathcad to continue working.
The Excel component lets you:
Pass data from Mathcad into an Excel file.
Double-click on the Excel component to use functionality from Excel.
Send values from an Excel file into Mathcad.
To insert an Excel component into a Mathcad worksheet:
Make sure Microsoft Excel 7.0 or higher is installed on your system, but not necessarily running.
Click in a blank spot in your worksheet. If you want to send values to the component from a Mathcad variable defined in your worksheet, make sure you click below or to the right of the variable definition.
Choose Component from the Insert menu.
Select Excel from the list and click “Next.” This launches the first part of the Excel Setup Wizard. Fill in the dialog box options and click on the “Next” button. The Wizard will bring you through other dialog boxes whose options you should fill in.
When you finish using the Wizard, you’ll see the Excel component in your worksheet with placeholders for the input variables and output variables. Enter the input variables in the bottom placeholders. Enter the output variables into the placeholders to the left of the :=.
When you click outside the component, input variables are sent to Excel from Mathcad and a range of cells are sent from Excel back to Mathcad and assigned to output variables. Once the output variables are defined, you can manipulate them however you’d like using Mathcad’s built-in functions and operators
For current information on and examples of the OLE automation interface, visit the MathSoft Web site at