ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Is there a button to close multiple files simultaneously (https://www.excelbanter.com/excel-discussion-misc-queries/193928-there-button-close-multiple-files-simultaneously.html)

lothar

Is there a button to close multiple files simultaneously
 
Is there a button in excel which I can use to close/save multiple files
(worksheets)simultaneously?

Don Guillett

Is there a button to close multiple files simultaneously
 
I use this which usually behaves

Sub CLOSE_ALL()
Application.ScreenUpdating = False
Application.DisplayAlerts = False
For Each w In Application.Workbooks
If w.Name < ThisWorkbook.Name Then
w.Save
w.Close
End If
Next w
ThisWorkbook.Save
'line below leaves excel
Application.Quit
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Lothar" wrote in message
...
Is there a button in excel which I can use to close/save multiple files
(worksheets)simultaneously?



RagDyeR

Is there a button to close multiple files simultaneously
 
Hold down <Shift as you click on <File in the Menu Bar.

Gives you a "Close All" option.
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Lothar" wrote in message
...
Is there a button in excel which I can use to close/save multiple files
(worksheets)simultaneously?





All times are GMT +1. The time now is 02:12 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com