title: How to fix the runtime error "-2147220992 (80040200)" while opening Mathcad file using excel vba code?
body: <p>I'm trying to open a MathCAD application using excel VB code. But I'm getting a runtime error "-2147220992 (80040200)". I have an indication as Automation error. Add your comments to solve this.</p>
  
  <pre><code>Dim eWS As Mathcad.Worksheet
  
  Set eApp = CreateObject("Mathcad.Application")
  eApp.Visible = True
  Path = "C:\Desktop\Test.xmcd"
  Set eWS = eApp.Worksheets.Open(Path)
  </code></pre>