Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default how to save the same file in other location

Hi,

I have a file named abc.xls and the same is copied at other location
(different path). When ever I update the abc.xls file, I want the same file
in other path also to be updated. Is it possible?

Regards,
Ravi.D
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default how to save the same file in other location

Click on File | Save As and then navigate to that other location and
click Save - you might be warned that the file exists, but just click
OK.

Hope this helps.

Pete

On Jul 22, 12:54*am, ravscares
wrote:
Hi,

I have a file named abc.xls and the same is copied at other location
(different path). When ever I update the abc.xls file, I want the same file
in other path also to be updated. Is it possible?

Regards,
Ravi.D


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default how to save the same file in other location

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As _
Boolean, Cancel As Boolean)
'Saves the current file to a backup folder and the default folder
'Note that any backup is overwritten without warning
Application.DisplayAlerts = False
ActiveWorkbook.SaveCopyAs Filename:="C:\Gordstuff\" & _
ActiveWorkbook.Name 'saves a copy of the workbook
ActiveWorkbook.Save 'saves the workbook
Application.DisplayAlerts = True
End Sub

Right-click on the Excel Icon left of "File" abd select "Videw Code"

Copy/paste the code above into that module.

Edit the path to suit.

Alt + q to return to the Excel window.

Save the workbook.


Gord Dibben MS Excel MVP

On Mon, 21 Jul 2008 16:54:08 -0700, ravscares
wrote:

Hi,

I have a file named abc.xls and the same is copied at other location
(different path). When ever I update the abc.xls file, I want the same file
in other path also to be updated. Is it possible?

Regards,
Ravi.D


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
How change the file location that I save my files to? John Scinto[_2_] Excel Discussion (Misc queries) 1 December 26th 07 01:14 AM
SAVE IN LOCATION gringolocoed Excel Worksheet Functions 1 August 11th 07 03:28 AM
have excel prompt for a file name and save location Dave F Excel Discussion (Misc queries) 6 March 20th 07 06:35 PM
Using Macro to Save Copy of File to New Location Chris Z Excel Discussion (Misc queries) 3 September 12th 06 11:26 PM
Existing file not defaulting to same location using "Save As" Daniel918 Excel Discussion (Misc queries) 1 June 1st 05 12:55 AM


All times are GMT +1. The time now is 06:07 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"