Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 43
Default Creating a Backup copy of workbook

I have a range already set up with my save path name, I want to create a
macro that will save a backup copy of the workbook that I am working in. Any
ideas how?

Thanks for any help

j

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Creating a Backup copy of workbook

With Activeworkbook
.SaveCopyAs Range("A1").Value & _
Left(.Name,Len(.name)-4) & Format(Now,"yyymmddhhmmss") & ".xls"
End With

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"justaguyfromky" wrote in message
...
I have a range already set up with my save path name, I want to create a
macro that will save a backup copy of the workbook that I am working in.

Any
ideas how?

Thanks for any help

j



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 43
Default Creating a Backup copy of workbook

Thanks Bob

This works great, but I would like the backup copy to be overwritten everday
by the next backup. What would I have to change on this formula to get the
backup file to be named "Filename_bak.xls"

Thanks again
j


"Bob Phillips" wrote:

With Activeworkbook
.SaveCopyAs Range("A1").Value & _
Left(.Name,Len(.name)-4) & Format(Now,"yyymmddhhmmss") & ".xls"
End With

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"justaguyfromky" wrote in message
...
I have a range already set up with my save path name, I want to create a
macro that will save a backup copy of the workbook that I am working in.

Any
ideas how?

Thanks for any help

j




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 43
Default Creating a Backup copy of workbook

I figured it out,

Thanks again for the help Bob

j




"Bob Phillips" wrote:

With Activeworkbook
.SaveCopyAs Range("A1").Value & _
Left(.Name,Len(.name)-4) & Format(Now,"yyymmddhhmmss") & ".xls"
End With

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"justaguyfromky" wrote in message
...
I have a range already set up with my save path name, I want to create a
macro that will save a backup copy of the workbook that I am working in.

Any
ideas how?

Thanks for any help

j




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
auto save a backup copy of a workbook Ese Excel Discussion (Misc queries) 1 October 13th 08 10:35 AM
Shared Workbook creating Backup when saved? LG Excel Discussion (Misc queries) 1 July 21st 08 10:58 PM
backup copy of a workbook R..VENKATARAMAN Excel Discussion (Misc queries) 0 February 1st 06 12:47 PM
backup copy of a workbook R..VENKATARAMAN Excel Discussion (Misc queries) 0 February 1st 06 12:24 PM
stop my speadsheet from creating an automatic backup copy lggallo Excel Discussion (Misc queries) 3 May 18th 05 10:01 PM


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