Closing Mathcad after opening as an OLE object in Excel
I've been trying to use Mathcad 15 embedded in an Excel 2007 spreadsheet. I can get PTC's example traject.xls and other spreadsheets to successfully open and use the embedded Mathcad worksheet but I can't figure out how to get rid of the Mathcad process that is created. Here's what happens in traject.xls:
1) Open traject.xls by double clicking
2) Excel then
a) opens with the file
b) a mathcad.exe process starts in task manager
c) updates using the embedded Mathcad object
3) I then close excel
excel.exe in task manager closes
mathcad.exe doesn't close
I have tried various times to access the Quit method under Mathcad's OLE Application class but VBA can't seem to ever find the method. Mulitple instances aren't created at least but I don't want to continue to consume a license when I'm not using Mathcad.
Has someone experienced this problem and found a solution? I've tried various methods posted on the web with no success yet. I'd appreciate a new traject.xls that corrects the problem.
Frank Lenning

