"activewindow.close" How do I tell it not to save?


Posted by Jason on January 17, 2002 9:01 AM

I am using the activewindow.close command. When it closes the application, I get a pop-up asking if I want to save. How do I get it to just close and not ask if I want to save?

Posted by Dan on January 17, 2002 9:06 AM

DisplayAlerts

Application.DisplayAlerts = False
ActiveWindow.Close
Application.DisplayAlerts = True



Posted by Jason on January 17, 2002 9:12 AM

Thanks, that works great.

Another problem solved by the Message Board.

A better way to do this: ActiveWindow.Close SaveChanges:=false