MS Word doc opens then closes a few seconds later. Why?

JeffboNuger

New member
Nov 16, 2021
1
0
0
Visit site
Hi Guys, I have a desktop running Windows 10 and Office 2019. The problem is with Word documents that have a document template and a global template with VBA. If I open one of these documents, it opens for a few seconds and then closes. I wrote the code for the global template about six years ago, which provides a user-form with many functions which are to a great extent for formatting. The problem seemed to start after modifying the code to accept '.docm' filename extension instead of '.doc'. I have since installed an older version of the global template, so really things are back as they were, but the issue still exists. Can anybody shed some light please?
 

HelloNNNewman

Administrator
Moderator
Oct 30, 2012
2,775
97
48
Visit site
Hi JeffboNuger,

I can't assist with the root cause of the issue, but are you able to restore your PC to an earlier setting prior to installing the modified code?
 

Members online

Forum statistics

Threads
323,252
Messages
2,243,524
Members
428,049
Latest member
velocityxs