View Single Post
  #3   Report Post  
Posted to microsoft.public.word.newusers
Graham Mayor
 
Posts: n/a
Default Changed document, want to close without prompt to save

No - the macro is as close as you will get. You could tie it to a particular
version of that file by adding the path eg

Sub DoNotSaveChanges()
Dim strName As String
strName = ActiveDocument.FullName
If strName = "c:\path\Document name.doc" Then
ActiveDocument.Close savechanges:=False
End If
End Sub

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


Stan Brown wrote:
Thu, 22 Jun 2006 10:24:02 +0300 from Graham Mayor
:
You are welcome, though I would still treat such a macro with
caution.


Just to clarify, there's no way to set a particular document "Don't
ask to save changes when closing me", right?