View Single Post
 
Old 01-18-2022, 12:28 PM
elchico elchico is offline Windows 10 Office 2019
Novice
 
Join Date: Jan 2022
Posts: 1
elchico is on a distinguished road
Default 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.
Reply With Quote