Do you how do you save all the open workbooks?
Maybe you could use a macro like this:
Option Explicit
Sub testme01()
Dim SaveErrors As Long
Dim SaveOk As Long
SaveErrors = 0
SaveOk = 0
Dim wkbk As Workbook
For Each wkbk In Application.Workbooks
If wkbk.Saved Then
'do nothing
ElseIf wkbk.ReadOnly Then
'do nothing
ElseIf wkbk.Path = "" Then
'do nothing--it's never been saved
Else
On Error Resume Next
wkbk.Save
If Err.Number <> 0 Then
Beep
MsgBox "Error trying to save " & wkbk.FullName & vbLf & _
"Number: " & Err.Number & vbLf & _
"Description: " & Err.Description
Err.Clear
SaveErrors = SaveErrors + 1
Else
SaveOk = SaveOk + 1
End If
End If
Next wkbk
MsgBox "Total Open: " & Workbooks.Count & vbLf & _
"Total Saved: " & SaveOk & vbLf & _
"Errors: " & SaveErrors
End Sub
If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm
And if you wanted to close all of them (while saving) your workbooks, you can
Shift-File|Close All.
Then when prompted about Saving, hold the shift and click on Yes--it'll act like
"Yes to all".
But this'll close all the open workbooks, too.
How can I easily save all open windows in EXCEL?
[I have Excel 97.]
Thank you.