Computing.Net > Forums > Office Software > Copy Word/Excel File

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Copy Word/Excel File

Reply to Message Icon

Name: 010100100 (by wazir)
Date: October 23, 2007 at 04:53:46 Pacific
OS: XP
CPU/Ram: 1024
Product: Dell
Comment:

Hi,
I wanted to put a copy of an Excel file on another drive and want that if I modify the original file, the copy should be updated as well.
Can somebody help me on that? Many Thanks in Advance!

Linux is basically a very simple Operating System, but you have to be a genius to understand its simplicity. http://www.cyberscout.net/



Sponsored Link
Ads by Google

Response Number 1
Name: DerbyDad03
Date: October 23, 2007 at 09:40:09 Pacific
Reply:

On occasion, I need to save a file in 2 locations so I wrote a "dual save" macro which essentially pops up the Save As dialog box twice. The first time it saves it in the default location, the second time I choose a different location, such as a USB drive. This ensures that I always save an exact copy of the file.

I assigned the macro to a button right next to the Save icon on my toolbar and use it whenever I want to perform a "dual save".

You could take this one step further and hardcode both locations into the macro, so that it would save the file in both places automatically with one click.

Here's the code that pops up the dialog boxes.

Sub DualSave()
'
' DualSave Macro
'
'Get Filename, Default = FileName
fileSaveName = Application.GetSaveAsFilename()
'Save File to Chosen Location
If fileSaveName <> False Then
ActiveWorkbook.SaveAs Filename:=fileSaveName
End If
'Do it again
fileSaveName = Application.GetSaveAsFilename()
If fileSaveName <> False Then
ActiveWorkbook.SaveAs Filename:=fileSaveName
End If
End Sub


0
Reply to Message Icon

Related Posts

See More


Word won't recognize my p... sudoku in excel



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: Copy Word/Excel File

I can't open words/excel files www.computing.net/answers/office/i-cant-open-wordsexcel-files/9339.html

convert word/excel into poiwerpoint www.computing.net/answers/office/convert-wordexcel-into-poiwerpoint/7415.html

Excel & word file size chgs to 0 kb www.computing.net/answers/office/excel-amp-word-file-size-chgs-to-0-kb/2986.html