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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Closing Excel without promt to save (VBA?) 1

Status
Not open for further replies.

excelhelp

Technical User
Dec 4, 2006
5
GB
I'm trying to close Excel without having the prompt come up to save changes...the spreadsheet will be used as a template.
 
Check out Microsoft Q213428. You could put following in workbook module:

Sub Auto_Close()
ThisWorkbook.Saved = True
End Sub

Hope this helps.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top