Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Tammies PITA
 
Posts: n/a
Default Automatic backup in excel with copy to hard drive and to cd-rw

How do I get Excel to either automatically backup to hard drive and cd-rw, or
even when I hit save icon, go ahead and save to hard drive and cd-rw. I
already have auto save setup but backup file goes to same hard drive folder
as origianl copy. Kind of defeats the purpose of a system crash and wanting
a copy on removable media. Thanks for your help!
  #3   Report Post  
Otto Moehrbach
 
Posts: n/a
Default

Here is an Excel macro that copies the saved file to another folder in the
hardrive. You can easily modify this macro to have it also copy the saved
file to the CDRW. HTH Otto
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As
Boolean)
'Change the following path to your own
Const szBackupPath As String = "C:\Documents and Settings\Otto
Moehrbach\My Documents\ExcelData\Backup"
'If they're not using the Save As command...
If Not SaveAsUI Then
'Cancel Excel 's Save
Cancel = True
'Save this workbook before backing it up
Application.EnableEvents = False
ThisWorkbook.Save
Application.EnableEvents = True
'Save a backup copy to the szBackupPath location
ThisWorkbook.SaveCopyAs szBackupPath & ThisWorkbook.Name
End If
End Sub

"Tammies PITA" <Tammies wrote in message
...
How do I get Excel to either automatically backup to hard drive and cd-rw,
or
even when I hit save icon, go ahead and save to hard drive and cd-rw. I
already have auto save setup but backup file goes to same hard drive
folder
as origianl copy. Kind of defeats the purpose of a system crash and
wanting
a copy on removable media. Thanks for your help!



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatic backup copy craigq Charts and Charting in Excel 2 April 11th 05 05:57 PM
Copy and Paste from Excel to powerpoint the pix is Truncated Alicia Excel Discussion (Misc queries) 0 March 4th 05 03:47 AM
Excel converts Mapped drive to UNC - How to stop? Fred Links and Linking in Excel 1 January 20th 05 01:24 AM
How do i save backup copy in a different folder mekraj Excel Discussion (Misc queries) 3 December 17th 04 09:33 PM
Copy Word table into Excel cell by cell hg Excel Discussion (Misc queries) 3 December 15th 04 05:43 PM


All times are GMT +1. The time now is 05:40 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"