Promt to save, when the dcument is already saved

  • Thread starter Thread starter pmm
  • Start date Start date
P

pmm

Hey

I create a new document from at template with macro, and save the new
document.
Then I will close it, but get a dialogbox "Do you want to save the
changes to xxxx" - but I have just saved it?

The "solution" I have read (changes to the 'Normal' template, see
under Tools|Options|Save) here don't fix the problem!

Can anyone help me?

Thanks...
 
Hey

I create a new document from at template with macro, and save the new
document.
Then I will close it, but get a dialogbox "Do you want to save the
changes to xxxx" - but I have just saved it?

The "solution" I have read (changes to the 'Normal' template, see
under Tools|Options|Save) here don't fix the problem!

Can anyone help me?

Thanks...

Hey

I have found the solution my self:

In the "Microsoft Word Object" / ThisDocument, I add the code:

Private Sub Document Close()
ActiveDocument.Save = True
End Sub
 

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