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:
Dim objWrdApp as Microsoft.Office.Interop.Word.Application _ = new Microsoft.Office.Interop.Word.Application objWrdApp.Documents.Open(CType(strWordFileName, system.object)) objWrdApp.Run (MacroName:="execConvEquations")
However, calling this from a second - new vb.net project using:
VB Code:
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?!?!?!




Reply With Quote