Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel Macro - Syntax for Exit Command

Status
Not open for further replies.

meagain

MIS
Nov 27, 2001
112
CA
Hello Everyone,

I need the syntax to place in an Excel macro to exit the program without saving.

If anyone can provide me with this, it would be greatly appreciated.

Thanks a lot :)
 
Hi
this will do the job but I don't really recommend it

Code:
With Application
.DisplayAlerts = False
.Quit
End With

;-)
If a man says something and there are no women there to hear him, is he still wrong? [ponder]
How do I get the best answers?
 
Code:
application.displayalerts = false
application.quit
 
Thank you!! I copied kodr's code to my macro and it works like a charm. [thumbsup2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top