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/