Document close

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hey everybody!

I've got a short question: I've made a word-template (.dot). Now I want to
close all documents based on this template to close without asking for being
saved, when I'm closing word or only this document.
How do I get that working?
I tried "Private Sub Document_Close()" and "ActiveDocument.Close
SaveChanges:=wdDoNotSaveChanges" in this template. But it doesn't work. :-(

Where is my mistake?

Thanks in advance and sorry for my bad english.
Nils
 
Hi @all!

I've git the solution: I had to write "Sub AutoClose()" instead of "Private
Sub Document_Close".
Nils
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top