Macro to save all worksheet and exit?

  • Thread starter Thread starter Guest
  • Start date Start date
Here is one I use

ub CLOSE_ALL()
Application.ScreenUpdating = False
Application.DisplayAlerts = False
For Each w In Workbooks
w.Save
Next
Application.Quit
End Sub
 
When I click the macro it show message

Can't execute code in break mod

any idea? Pls guide me from star
 
Back
Top