我正在尝试从excel启动mathcad,除了可以启动mathcad 15而不是Prime 5.0以外,它都可以正常运行。我需要更改什么才能启动正确版本的应用程序?
Public Sub ExportToMathCad_test2()
Dim mc As Object
Dim wk As Object
Dim ws As Object
Dim path As String
Set mc = CreateObject("Mathcad.Application")
mc.Visible = True
path = "Z:\Dokumentstyring\Templates\MATHCAD\template.mcdx"
Set wk = mc.Worksheets
Set ws = wk.Open(path)
end sub