Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Dale
 
Posts: n/a
Default How many copies of a file can be updated by the "File/Save" comma.

Same File, saved in two different locations, for two different users, be
updated at the same time when selecting the File - Save command?
  #2   Report Post  
Otto Moehrbach
 
Posts: n/a
Default

This macro saves the file to one other folder when the file is saved. You
can modify it to repeat the copy to another folder. 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
"Dale" wrote in message
...
Same File, saved in two different locations, for two different users, be
updated at the same time when selecting the File - Save command?



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
hyperlinks following in copies of original file Neat Excel Discussion (Misc queries) 3 February 10th 05 02:28 AM
Why does Excel create multiple copies of the same file? TJRUFF Excel Discussion (Misc queries) 2 January 27th 05 08:43 PM
How can I get notified whenever a certain excel file is updated (. AnnL@work Excel Discussion (Misc queries) 1 January 14th 05 05:16 PM
Read Text File into Excel Using VBA Willie T Excel Discussion (Misc queries) 13 January 8th 05 12:37 AM
how do i sync multiple copies of the same excel file? graphicdoug Excel Discussion (Misc queries) 1 December 30th 04 04:44 PM


All times are GMT +1. The time now is 09:30 PM.

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

About Us

"It's about Microsoft Excel"