Open word document + macro from an .exe
Hello everyone,
I developed a small Tool using visual Studio
This tool lists all word Dokuments (all those Word documents contain macros just mailMerge), in a specific directory. The user can choose a document and by double-clicking, it will be opened and the macro will be executed.
Everything went fine until I installed Office 2019, the word document will be opened but the macro (mailMerge) will not be executed.
If I go through the windows explorer to the specified directory and double click the Word docuument manually, the macro starts and everything goes fine.
In trust Center I allowed Macros and enabled VBA.
Hope I could expressed my problem correctly.
Thanks in advance.
|