Hi All,

In project1, I use this to open a word file & run a macro - this works fine in both the vs.net ide for thi project1, and if I compile this to an exe file & call it using the shellexecute api from vb6, no problems whatsoever!

VB Code:
  1. Dim objWrdApp as Microsoft.Office.Interop.Word.Application _
  2. = new Microsoft.Office.Interop.Word.Application
  3.  
  4. objWrdApp.Documents.Open(CType(strWordFileName, system.object))
  5. objWrdApp.Run (MacroName:="execConvEquations")

However, calling this from a second - new vb.net project using:
VB Code:
  1. ProcessVariable "C:\MyCompiledApp", strWordFileNameVariable)

It comes up with the error Unable to run the specified macro. Can someone tell me how to ressolve this please?!?!?!