Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.newusers
|
|||
|
|||
Changed document, want to close without prompt to save
You are welcome, though I would still treat such a macro with caution.
-- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org -----Original Message----- From: Stan Brown ] Posted At: 22 June 2006 04:08 Posted To: microsoft.public.word.newusers Conversation: Changed document, want to close without prompt to save Subject: Changed document, want to close without prompt to save Wed, 21 Jun 2006 08:37:46 +0300 from Graham Mayor : A minor addition to Stefan's macro will limit the macro to the one document. [snip] Excellent! Thanks, Graham! -- Stan Brown, Oak Road Systems, Tompkins County, New York, USA http://OakRoadSystems.com/ |
#2
Posted to microsoft.public.word.newusers
|
|||
|
|||
Changed document, want to close without prompt to save
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? -- Stan Brown, Oak Road Systems, Tompkins County, New York, USA http://OakRoadSystems.com/ |
#3
Posted to microsoft.public.word.newusers
|
|||
|
|||
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? |
#4
Posted to microsoft.public.word.newusers
|
|||
|
|||
Changed document, want to close without prompt to save
In the template from which the document is created, create macros with the
names: FileClose() FileCloseAll() FileCloseorCloseAll() FileCloseorExit() FileExit() each of which contain the command ActiveDocument.Close wdDoNotSaveChanges -- Hope this helps. Please reply to the newsgroup unless you wish to avail yourself of my services on a paid consulting basis. Doug Robbins - Word MVP "Stan Brown" wrote in message t... 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? -- Stan Brown, Oak Road Systems, Tompkins County, New York, USA http://OakRoadSystems.com/ |
#5
Posted to microsoft.public.word.newusers
|
|||
|
|||
Changed document, want to close without prompt to save
Thu, 22 Jun 2006 16:44:13 +0300 from Graham Mayor
: 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? 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 Thanks, Graham. At least now I know. :-) -- Stan Brown, Oak Road Systems, Tompkins County, New York, USA http://OakRoadSystems.com/ |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Irritating "Save" prompt when nothing has changed | Microsoft Word Help | |||
Those weird and wacky MS Word messages | New Users | |||
Templates | Page Layout | |||
do i save the document template or not (urgent) | New Users | |||
Stopping Save As Dialog appearing when closing a document | Microsoft Word Help |