Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default File Copy Macro

I am trying to set a macro which will backup an open file to a network
location. I currently use the file save as route but this requires me to use
the save as command twice. I would rather not use the auto backup feature as
the file is very large and takes quite a time to save.
Thanks in advance
Nigel


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default File Copy Macro

Nigel,

Look at the SaveCopyAs method.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Nigel Bishop" wrote in message
...
I am trying to set a macro which will backup an open file to a network
location. I currently use the file save as route but this requires me to

use
the save as command twice. I would rather not use the auto backup feature

as
the file is very large and takes quite a time to save.
Thanks in advance
Nigel




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default File Copy Macro

Hi Nigel

Sub BackMeUp()
ThisWorkbook.SaveCopyAs "C:\Temp\Backup.xls"
End Sub

it will not change your "main" file location, so "Save" will still go to where it
originated.

--
HTH. Best wishes Harald
Followup to newsgroup only please.

"Nigel Bishop" wrote in message
...
I am trying to set a macro which will backup an open file to a network
location. I currently use the file save as route but this requires me to use
the save as command twice. I would rather not use the auto backup feature as
the file is very large and takes quite a time to save.
Thanks in advance
Nigel




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
Macro to save and close, then copy file NewSysAdmin Excel Discussion (Misc queries) 2 December 2nd 09 03:24 PM
Copy file with a macro Brettjg Excel Discussion (Misc queries) 2 March 2nd 07 01:46 AM
Using Macro to Save Copy of File to New Location Chris Z Excel Discussion (Misc queries) 3 September 12th 06 11:26 PM
creat a macro to save a copy with different file name yrndtn Excel Discussion (Misc queries) 2 September 8th 06 01:14 PM
Select File Copy/Paste Macro Help.... Jay Baker Excel Programming 1 January 14th 04 01:01 PM


All times are GMT +1. The time now is 11:51 PM.

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"