O
Omatase
I am making the following call to a VBA macro in Word:
_wordApp.GetType().InvokeMember("Run",
System.Reflection.BindingFlags.Default |
System.Reflection.BindingFlags.InvokeMethod, null, _wordApp,
argumentList);
This call is successful when made from the main thread of my
application. When I make the same call from another, newly spawned,
thread, nothing happens. The call to the macro never returns and no
line in the macro is ever processed.
I'm sure this is a common problem for folks dealing with mutithreading
and vba macro calls but I didn't find anything in about it online. Is
there something I need to do differently to get this to work properly?
_wordApp.GetType().InvokeMember("Run",
System.Reflection.BindingFlags.Default |
System.Reflection.BindingFlags.InvokeMethod, null, _wordApp,
argumentList);
This call is successful when made from the main thread of my
application. When I make the same call from another, newly spawned,
thread, nothing happens. The call to the macro never returns and no
line in the macro is ever processed.
I'm sure this is a common problem for folks dealing with mutithreading
and vba macro calls but I didn't find anything in about it online. Is
there something I need to do differently to get this to work properly?