Save all open Excel workbooks

This tutorial shows how to save all open Excel files at once using VBA

METHOD 1. Save all open Excel files at once using VBA

VBA

Sub Save_all_excel_files()
Dim wb As Workbook
For Each wb In Application.Workbooks

If Not wb.ReadOnly Then
wb.Save
End If

Next

End Sub

NOTES
Note 1: This VBA code will save all open excel files in their existing locations at once.

RELATED TOPICS

Related Topic Description Related Topic and Description
How to create and save a new workbook using VBA
How to save an Excel workbook