Macro to save all worksheet and exit?

D

Don Guillett

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
 
R

Ram

When I click the macro it show message

Can't execute code in break mod

any idea? Pls guide me from star
 
Top