E
Ed Davis
I am trying to backup workbooks upon closing.
I run a save all macro and then Application.Quit .
All workbooks are saved no backup is done unless I close the book.
The application does not quit. and all the workbooks are still open.
When I do not use the Workbook_Beforeclose everthing works fine but no
backup.
I have put the following in the This Workbook module for each workbook. The
names and paths are different for each workbook.
THISWORKBOOK MODULE:
ThisWorkbook.SaveCopyAs ThisWorkbook.Path & "\Backup\Sales\Sales Close " &
Format(Now, "dd-mm") & ".xls"
This is my save all.
Public Sub Save_All()
' This macro will save all of the workbooks open in Excel.
Dim wb As Workbook
Application.ScreenUpdating = False
Application.DisplayAlerts = False
For Each wb In Workbooks
wb.Save
Next wb
End Sub
Is there anything I can do to makesure the workbook is backed up the date
string I am using is enough as long as the backup is over written if the
same date.
I run a save all macro and then Application.Quit .
All workbooks are saved no backup is done unless I close the book.
The application does not quit. and all the workbooks are still open.
When I do not use the Workbook_Beforeclose everthing works fine but no
backup.
I have put the following in the This Workbook module for each workbook. The
names and paths are different for each workbook.
THISWORKBOOK MODULE:
ThisWorkbook.SaveCopyAs ThisWorkbook.Path & "\Backup\Sales\Sales Close " &
Format(Now, "dd-mm") & ".xls"
This is my save all.
Public Sub Save_All()
' This macro will save all of the workbooks open in Excel.
Dim wb As Workbook
Application.ScreenUpdating = False
Application.DisplayAlerts = False
For Each wb In Workbooks
wb.Save
Next wb
End Sub
Is there anything I can do to makesure the workbook is backed up the date
string I am using is enough as long as the backup is over written if the
same date.