View Single Post
 
Old 09-30-2021, 08:37 AM
Logit Logit is offline Windows 10 Office 2007
Expert
 
Join Date: Jan 2017
Posts: 533
Logit is a jewel in the roughLogit is a jewel in the roughLogit is a jewel in the rough
Default

This macro, placed in the ThisWorkbook module, will save the workbook without notifying the user :

Code:
Option Explicit

Private Sub Workbook_BeforeClose(Cancel As Boolean)

    Application.DisplayAlerts = False
    ThisWorkbook.Save
   
    Application.DisplayAlerts = True
    Application.Quit

End Sub
Reply With Quote