A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

backup



 
 
Thread Tools Display Modes
  #1  
Old March 25th, 2005, 09:28 AM
Mark
external usenet poster
 
Posts: n/a
Default backup

when i save my budget report workbook, can i also save my
backup copy held in a diffrrent drive.

thanks

mark
  #2  
Old March 25th, 2005, 03:07 PM
Paul B
external usenet poster
 
Posts: n/a
Default

Mark, here is one way, from a post by Gord Didden

You could create a macro that will save the file at the default location and
a
copy to the folder of your choice.

The macro could be run manually or in beforesave code in ThisWorkbook.



Sub BUandSave2()
'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
Application.DisplayAlerts = False
ActiveWorkbook.SaveCopyAs FileName:="E:\Backup*\" & _
ActiveWorkbook.Name
ActiveWorkbook.Save
Application.DisplayAlerts = True
End Sub



if you are new to macros you may also what to have a look here on getting
started with macros

http://www.mvps.org/dmcritchie/excel/getstarted.htm




--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003







Gord Dibben Excel MVP


"Mark" wrote in message
...
when i save my budget report workbook, can i also save my
backup copy held in a diffrrent drive.

thanks

mark



  #3  
Old March 25th, 2005, 08:17 PM
Don Guillett
external usenet poster
 
Posts: n/a
Default

Here is one I use to backup to the same folder in a sub folder. Modify to
suit.

Sub Backup() 'kept in personal.xls & assigned to toolbar button
On Error GoTo BackupFile
MkDir CurDir & "\Backup"
BackupFile:
With ActiveWorkbook
MyWB = .Path & "\BACKUP\" & .Name
.SaveCopyAs MyWB
.Save
End With
End Sub

--
Don Guillett
SalesAid Software

"Mark" wrote in message
...
when i save my budget report workbook, can i also save my
backup copy held in a diffrrent drive.

thanks

mark



  #4  
Old April 5th, 2005, 04:23 PM
mark
external usenet poster
 
Posts: n/a
Default

Thanks
for this it works great one thing through if i wanted to=20
run this type of macro when i x out of excell what would=20
the top line read.

thanks

mark
-----Original Message-----
Mark, here is one way, from a post by Gord Didden

You could create a macro that will save the file at the=20

default location and=20
a
copy to the folder of your choice.

The macro could be run manually or in beforesave code in=20

ThisWorkbook.



Sub BUandSave2()
'Private Sub Workbook_BeforeSave(ByVal SaveAsUI As=20

Boolean, Cancel As=20
Boolean)
'Saves the current file to a backup folder and the=20

default folder
'Note that any backup is overwritten
Application.DisplayAlerts =3D False
ActiveWorkbook.SaveCopyAs FileName:=3D"E:\Backup=AD\" & _
ActiveWorkbook.Name
ActiveWorkbook.Save
Application.DisplayAlerts =3D True
End Sub



if you are new to macros you may also what to have a=20

look here on getting=20
started with macros

http://www.mvps.org/dmcritchie/excel/getstarted.htm




--=20
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can=20

benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003







Gord Dibben Excel MVP


"Mark" wrote in=20

message=20
...
when i save my budget report workbook, can i also save=20

my
backup copy held in a diffrrent drive.

thanks

mark=20



.

  #5  
Old April 5th, 2005, 04:24 PM
mark
external usenet poster
 
Posts: n/a
Default

thanks for this.

mark


-----Original Message-----
Mark, here is one way, from a post by Gord Didden

You could create a macro that will save the file at the=20

default location and=20
a
copy to the folder of your choice.

The macro could be run manually or in beforesave code in=20

ThisWorkbook.



Sub BUandSave2()
'Private Sub Workbook_BeforeSave(ByVal SaveAsUI As=20

Boolean, Cancel As=20
Boolean)
'Saves the current file to a backup folder and the=20

default folder
'Note that any backup is overwritten
Application.DisplayAlerts =3D False
ActiveWorkbook.SaveCopyAs FileName:=3D"E:\Backup=AD\" & _
ActiveWorkbook.Name
ActiveWorkbook.Save
Application.DisplayAlerts =3D True
End Sub



if you are new to macros you may also what to have a=20

look here on getting=20
started with macros

http://www.mvps.org/dmcritchie/excel/getstarted.htm




--=20
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can=20

benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003







Gord Dibben Excel MVP


"Mark" wrote in=20

message=20
...
when i save my budget report workbook, can i also save=20

my
backup copy held in a diffrrent drive.

thanks

mark=20



.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
URGENT: Mailing rule problems of filing in outlook express and hard copy file systems in real case Teres Outlook Express 7 August 14th, 2004 01:55 AM
Export messages Gio & Patty Outlook Express 1 July 14th, 2004 09:46 PM
OE Freebie Backup -- help needed John Blaustein Outlook Express 5 July 4th, 2004 03:53 AM
PST Backup Tool Office 2003 Broken? boyron General Discussion 2 June 11th, 2004 06:57 PM
Unique Backup Filename, Not AA General Discussion 15 May 31st, 2004 04:31 PM


All times are GMT +1. The time now is 01:31 AM.


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