PC Review


Reply
Thread Tools Rate Thread

Backing Up Open Excel Files - with a Timing Component

 
 
punter1000@gmail.com
Guest
Posts: n/a
 
      17th Nov 2006
Dear All,

there has been some good examples of code in the past to automatically
save a copy of an Excel file as a backup. eg.... my version of an
example by Tom earlier this year...

Sub BackupFile()

Dim pPath As String

With ActiveWorkbook
sStr = Left(.FullName, Len(.FullName) - 4) & "_backup_" & _
Format(Now, "dd Mmm yy hhmm") & ".xls"


Debug.Print sStr
.SaveCopyAs sStr
End With

MsgBox "Your file has been saved as requested."

End Sub

Is there a way to have this timed so that every nominated time period
(eg 10mins) this code will automatically run? I have the above code in
my Personal.xls sheet so it can be accessed by all open Excel files via
a button on a customised toolbar.

Is there also a way to nominate a directory to save this in (eg not the
current directory of the file, but maybe a designated "Backup Folder"?


Many thanks,

punter.....

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
backing up outlook pst files with outlook open (Windows Vista) techman41973@yahoo.com Microsoft Outlook Discussion 3 16th Oct 2007 08:31 AM
backing up outlook pst files with outlook open (Windows Vista) techman41973@yahoo.com Windows Vista General Discussion 3 16th Oct 2007 08:31 AM
Serviced Component, Excel and OleDbConnection.Open josef@wainz.net Microsoft ADO .NET 1 1st Dec 2005 03:19 PM
Excel open up with multiple workbooks created by links to other files that were not excel files James Muir Microsoft Excel Misc 0 23rd Sep 2003 02:00 PM
backing up Excel files Louis Microsoft Excel Misc 5 30th Jul 2003 05:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:30 AM.