• Welcome to the all-new Windows Central Forums! - We're still moving some things around, so you may see a few quirks here and there, but we're working on getting things fully completed as soon as possible. For now, take a look around, and if you run into any major issues, please let us know in this thread!

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

JeffboNuger

New member
Nov 16, 2021
1
0
0
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,693
34
48
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
316,165
Messages
2,233,419
Members
427,366
Latest member
ypeit