Welcome to the { mindfrost82.com } forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Excel

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-13-2008, 06:51 PM
Ron Patterson
 
Posts: n/a
always save backup

Can someone please run me through the drill to configure Excel 2002 to
always save a backup file when the original is saved.
Thanks,
Ron Patterson


Reply With Quote
  #2 (permalink)  
Old 05-13-2008, 07:04 PM
T. Valko
 
Posts: n/a
Re: always save backup

Open the file
Goto File>Save As
On the very right hand side of the dialog box select Tools>General
Options>Always create backup>OK
Click the Save button
Answer yes to the prompt


--
Biff
Microsoft Excel MVP


"Ron Patterson" <a.baba@mindspring.com> wrote in message
news:0_KdnXJan9a1SLTVnZ2dnUVZ_hSdnZ2d@earthlink.co m...
> Can someone please run me through the drill to configure Excel 2002 to
> always save a backup file when the original is saved.
> Thanks,
> Ron Patterson
>



Reply With Quote
  #3 (permalink)  
Old 05-13-2008, 07:43 PM
Ron Patterson
 
Posts: n/a
Re: always save backup

Thanks Biff - but my fault.
I think I asked the wrong question. I want EVERY file I create and save in
Excel to AUTOMATICALLY create a backup file as a default. There is some way
to do this I recall copying a model file to the XL Start folder - but I do
not remember the details.
Thanks,
Ron



"T. Valko" <biffinpitt@comcast.net> wrote in message
news:OCqAaPStIHA.2068@TK2MSFTNGP05.phx.gbl...
> Open the file
> Goto File>Save As
> On the very right hand side of the dialog box select Tools>General
> Options>Always create backup>OK
> Click the Save button
> Answer yes to the prompt
>
>
> --
> Biff
> Microsoft Excel MVP
>
>
> "Ron Patterson" <a.baba@mindspring.com> wrote in message
> news:0_KdnXJan9a1SLTVnZ2dnUVZ_hSdnZ2d@earthlink.co m...
>> Can someone please run me through the drill to configure Excel 2002 to
>> always save a backup file when the original is saved.
>> Thanks,
>> Ron Patterson
>>

>
>



Reply With Quote
  #4 (permalink)  
Old 05-13-2008, 08:29 PM
Gord Dibben
 
Posts: n/a
Re: always save backup

To create a workbook and a worksheet template

Open a new workbook. Customize as you wish, including the "Always create a
backup" per Biff's direcdtion.

File>Save As Type: scroll down to Excel Template(*.XLT) and select. Name your
workbook "BOOK"(no quotes). Excel will add the .XLT to save as BOOK.XLT.

Store this workbook in the XLSTART folder usually located at........

C:\Documents and Settings\username\Application Data\Microsoft\Excel\XLSTART

This will be the default workbook for File>New or the Toolbar button File>New or
CTRL + n

WARNING................Do not use File>New...Blank Workbook or you will get the
Excel default workbook.

NOTE: Existing workbooks are not affected by these settings.

You can also open a new workbook and delete all but one sheet. Customize as
you wish then save this as SHEET.XLT in XLSTART folder also. It now becomes
the default Insert>Sheet.

More can be found on this in Help under "templates"(no quotes).


Gord Dibben MS Excel MVP

On Tue, 13 May 2008 11:43:13 -0700, "Ron Patterson" <a.baba@mindspring.com>
wrote:

>Thanks Biff - but my fault.
>I think I asked the wrong question. I want EVERY file I create and save in
>Excel to AUTOMATICALLY create a backup file as a default. There is some way
>to do this I recall copying a model file to the XL Start folder - but I do
>not remember the details.
>Thanks,
>Ron
>
>
>
>"T. Valko" <biffinpitt@comcast.net> wrote in message
>news:OCqAaPStIHA.2068@TK2MSFTNGP05.phx.gbl...
>> Open the file
>> Goto File>Save As
>> On the very right hand side of the dialog box select Tools>General
>> Options>Always create backup>OK
>> Click the Save button
>> Answer yes to the prompt
>>
>>
>> --
>> Biff
>> Microsoft Excel MVP
>>
>>
>> "Ron Patterson" <a.baba@mindspring.com> wrote in message
>> news:0_KdnXJan9a1SLTVnZ2dnUVZ_hSdnZ2d@earthlink.co m...
>>> Can someone please run me through the drill to configure Excel 2002 to
>>> always save a backup file when the original is saved.
>>> Thanks,
>>> Ron Patterson
>>>

>>
>>

>


Reply With Quote
  #5 (permalink)  
Old 05-13-2008, 09:44 PM
Ron Patterson
 
Posts: n/a
Re: always save backup

Thanks Gord - this was what I was trying to remember.
The only problem seems to be that if I create a new workbook and save it,
there is not a backup created. But if I save it and then click save again
there is a backup created. Any way to avoid having to remember to save it
twice to create a backup.
Thanks,
Ron




"Gord Dibben" <gorddibbATshawDOTca> wrote in message
news:nrqj24dsai6ghjmhlmvstbjb59qa0f39bf@4ax.com...
> To create a workbook and a worksheet template
>
> Open a new workbook. Customize as you wish, including the "Always create
> a
> backup" per Biff's direcdtion.
>
> File>Save As Type: scroll down to Excel Template(*.XLT) and select. Name
> your
> workbook "BOOK"(no quotes). Excel will add the .XLT to save as BOOK.XLT.
>
> Store this workbook in the XLSTART folder usually located at........
>
> C:\Documents and Settings\username\Application
> Data\Microsoft\Excel\XLSTART
>
> This will be the default workbook for File>New or the Toolbar button
> File>New or
> CTRL + n
>
> WARNING................Do not use File>New...Blank Workbook or you will
> get the
> Excel default workbook.
>
> NOTE: Existing workbooks are not affected by these settings.
>
> You can also open a new workbook and delete all but one sheet. Customize
> as
> you wish then save this as SHEET.XLT in XLSTART folder also. It now
> becomes
> the default Insert>Sheet.
>
> More can be found on this in Help under "templates"(no quotes).
>
>
> Gord Dibben MS Excel MVP
>
> On Tue, 13 May 2008 11:43:13 -0700, "Ron Patterson"
> <a.baba@mindspring.com>
> wrote:
>
>>Thanks Biff - but my fault.
>>I think I asked the wrong question. I want EVERY file I create and save
>>in
>>Excel to AUTOMATICALLY create a backup file as a default. There is some
>>way
>>to do this I recall copying a model file to the XL Start folder - but I
>>do
>>not remember the details.
>>Thanks,
>>Ron
>>
>>
>>
>>"T. Valko" <biffinpitt@comcast.net> wrote in message
>>news:OCqAaPStIHA.2068@TK2MSFTNGP05.phx.gbl...
>>> Open the file
>>> Goto File>Save As
>>> On the very right hand side of the dialog box select Tools>General
>>> Options>Always create backup>OK
>>> Click the Save button
>>> Answer yes to the prompt
>>>
>>>
>>> --
>>> Biff
>>> Microsoft Excel MVP
>>>
>>>
>>> "Ron Patterson" <a.baba@mindspring.com> wrote in message
>>> news:0_KdnXJan9a1SLTVnZ2dnUVZ_hSdnZ2d@earthlink.co m...
>>>> Can someone please run me through the drill to configure Excel 2002 to
>>>> always save a backup file when the original is saved.
>>>> Thanks,
>>>> Ron Patterson
>>>>
>>>
>>>

>>

>



Reply With Quote
  #6 (permalink)  
Old 05-13-2008, 10:21 PM
T. Valko
 
Posts: n/a
Re: always save backup

The backup file (*.xlk) is always one version behind the current file
(*.xls).

When you open a brand new workbook it doesn't exist until you actually save
it. So, until you actually save the file for the first time and it already
exists there is nothing to backup.

I understand what you want to do but I'm not sure how to go about doing it.
It will require some kind of VBA code but it will have to be written such
that you just don't end up with an exact copy of the current file. That's
not the purpose of having a backup.

Gord's much better with VBA than I am. Maybe he has an idea.

If you go about things the way they are, the next time you save the current
file then you'll get the backup which will be one version behind the current
file.

--
Biff
Microsoft Excel MVP


"Ron Patterson" <a.baba@mindspring.com> wrote in message
news:YNCdnYJ_4ac6YLTVnZ2dnUVZ_rrinZ2d@earthlink.co m...
> Thanks Gord - this was what I was trying to remember.
> The only problem seems to be that if I create a new workbook and save it,
> there is not a backup created. But if I save it and then click save again
> there is a backup created. Any way to avoid having to remember to save it
> twice to create a backup.
> Thanks,
> Ron
>
>
>
>
> "Gord Dibben" <gorddibbATshawDOTca> wrote in message
> news:nrqj24dsai6ghjmhlmvstbjb59qa0f39bf@4ax.com...
>> To create a workbook and a worksheet template
>>
>> Open a new workbook. Customize as you wish, including the "Always create
>> a
>> backup" per Biff's direcdtion.
>>
>> File>Save As Type: scroll down to Excel Template(*.XLT) and select.
>> Name your
>> workbook "BOOK"(no quotes). Excel will add the .XLT to save as BOOK.XLT.
>>
>> Store this workbook in the XLSTART folder usually located at........
>>
>> C:\Documents and Settings\username\Application
>> Data\Microsoft\Excel\XLSTART
>>
>> This will be the default workbook for File>New or the Toolbar button
>> File>New or
>> CTRL + n
>>
>> WARNING................Do not use File>New...Blank Workbook or you will
>> get the
>> Excel default workbook.
>>
>> NOTE: Existing workbooks are not affected by these settings.
>>
>> You can also open a new workbook and delete all but one sheet. Customize
>> as
>> you wish then save this as SHEET.XLT in XLSTART folder also. It now
>> becomes
>> the default Insert>Sheet.
>>
>> More can be found on this in Help under "templates"(no quotes).
>>
>>
>> Gord Dibben MS Excel MVP
>>
>> On Tue, 13 May 2008 11:43:13 -0700, "Ron Patterson"
>> <a.baba@mindspring.com>
>> wrote:
>>
>>>Thanks Biff - but my fault.
>>>I think I asked the wrong question. I want EVERY file I create and save
>>>in
>>>Excel to AUTOMATICALLY create a backup file as a default. There is some
>>>way
>>>to do this I recall copying a model file to the XL Start folder - but I
>>>do
>>>not remember the details.
>>>Thanks,
>>>Ron
>>>
>>>
>>>
>>>"T. Valko" <biffinpitt@comcast.net> wrote in message
>>>news:OCqAaPStIHA.2068@TK2MSFTNGP05.phx.gbl...
>>>> Open the file
>>>> Goto File>Save As
>>>> On the very right hand side of the dialog box select Tools>General
>>>> Options>Always create backup>OK
>>>> Click the Save button
>>>> Answer yes to the prompt
>>>>
>>>>
>>>> --
>>>> Biff
>>>> Microsoft Excel MVP
>>>>
>>>>
>>>> "Ron Patterson" <a.baba@mindspring.com> wrote in message
>>>> news:0_KdnXJan9a1SLTVnZ2dnUVZ_hSdnZ2d@earthlink.co m...
>>>>> Can someone please run me through the drill to configure Excel 2002 to
>>>>> always save a backup file when the original is saved.
>>>>> Thanks,
>>>>> Ron Patterson
>>>>>
>>>>
>>>>
>>>

>>

>
>



Reply With Quote
  #7 (permalink)  
Old 05-13-2008, 11:25 PM
Ron Patterson
 
Posts: n/a
Re: always save backup

Understood now - sure makes sense the way you explained it.
Thanks Biff.
Ron

"T. Valko" <biffinpitt@comcast.net> wrote in message
news:eZoye9TtIHA.1772@TK2MSFTNGP03.phx.gbl...
> The backup file (*.xlk) is always one version behind the current file
> (*.xls).
>
> When you open a brand new workbook it doesn't exist until you actually
> save it. So, until you actually save the file for the first time and it
> already exists there is nothing to backup.
>
> I understand what you want to do but I'm not sure how to go about doing
> it. It will require some kind of VBA code but it will have to be written
> such that you just don't end up with an exact copy of the current file.
> That's not the purpose of having a backup.
>
> Gord's much better with VBA than I am. Maybe he has an idea.
>
> If you go about things the way they are, the next time you save the
> current file then you'll get the backup which will be one version behind
> the current file.
>
> --
> Biff
> Microsoft Excel MVP
>
>
> "Ron Patterson" <a.baba@mindspring.com> wrote in message
> news:YNCdnYJ_4ac6YLTVnZ2dnUVZ_rrinZ2d@earthlink.co m...
>> Thanks Gord - this was what I was trying to remember.
>> The only problem seems to be that if I create a new workbook and save it,
>> there is not a backup created. But if I save it and then click save
>> again there is a backup created. Any way to avoid having to remember to
>> save it twice to create a backup.
>> Thanks,
>> Ron
>>
>>
>>
>>
>> "Gord Dibben" <gorddibbATshawDOTca> wrote in message
>> news:nrqj24dsai6ghjmhlmvstbjb59qa0f39bf@4ax.com...
>>> To create a workbook and a worksheet template
>>>
>>> Open a new workbook. Customize as you wish, including the "Always
>>> create a
>>> backup" per Biff's direcdtion.
>>>
>>> File>Save As Type: scroll down to Excel Template(*.XLT) and select.
>>> Name your
>>> workbook "BOOK"(no quotes). Excel will add the .XLT to save as BOOK.XLT.
>>>
>>> Store this workbook in the XLSTART folder usually located at........
>>>
>>> C:\Documents and Settings\username\Application
>>> Data\Microsoft\Excel\XLSTART
>>>
>>> This will be the default workbook for File>New or the Toolbar button
>>> File>New or
>>> CTRL + n
>>>
>>> WARNING................Do not use File>New...Blank Workbook or you will
>>> get the
>>> Excel default workbook.
>>>
>>> NOTE: Existing workbooks are not affected by these settings.
>>>
>>> You can also open a new workbook and delete all but one sheet.
>>> Customize as
>>> you wish then save this as SHEET.XLT in XLSTART folder also. It now
>>> becomes
>>> the default Insert>Sheet.
>>>
>>> More can be found on this in Help under "templates"(no quotes).
>>>
>>>
>>> Gord Dibben MS Excel MVP
>>>
>>> On Tue, 13 May 2008 11:43:13 -0700, "Ron Patterson"
>>> <a.baba@mindspring.com>
>>> wrote:
>>>
>>>>Thanks Biff - but my fault.
>>>>I think I asked the wrong question. I want EVERY file I create and save
>>>>in
>>>>Excel to AUTOMATICALLY create a backup file as a default. There is some
>>>>way
>>>>to do this I recall copying a model file to the XL Start folder - but I
>>>>do
>>>>not remember the details.
>>>>Thanks,
>>>>Ron
>>>>
>>>>
>>>>
>>>>"T. Valko" <biffinpitt@comcast.net> wrote in message
>>>>news:OCqAaPStIHA.2068@TK2MSFTNGP05.phx.gbl.. .
>>>>> Open the file
>>>>> Goto File>Save As
>>>>> On the very right hand side of the dialog box select Tools>General
>>>>> Options>Always create backup>OK
>>>>> Click the Save button
>>>>> Answer yes to the prompt
>>>>>
>>>>>
>>>>> --
>>>>> Biff
>>>>> Microsoft Excel MVP
>>>>>
>>>>>
>>>>> "Ron Patterson" <a.baba@mindspring.com> wrote in message
>>>>> news:0_KdnXJan9a1SLTVnZ2dnUVZ_hSdnZ2d@earthlink.co m...
>>>>>> Can someone please run me through the drill to configure Excel 2002
>>>>>> to
>>>>>> always save a backup file when the original is saved.
>>>>>> Thanks,
>>>>>> Ron Patterson
>>>>>>
>>>>>
>>>>>
>>>>
>>>

>>
>>

>
>



Reply With Quote
  #8 (permalink)  
Old 05-13-2008, 11:32 PM
Gord Dibben
 
Posts: n/a
Re: always save backup

Biff has hit the nail on the head about having to save twice in order to have a
backup one version earlier than current.

This code will ensure that you save twice with the backup created when you click
"Yes" on the "do you want to overwrite".

The code will not run on subsequent openings of the created file because it will
then have a path.

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Application.DisplayAlerts = False
If ThisWorkbook.Path = "" Then
ThisWorkbook.SaveAs Filename:=ActiveWorkbook.Name
End If
Application.DisplayAlerts = True
End Sub

Of course it means you will get the "enable macros" warning.

Place the code in Thisworkbook module of the Book.xlt

Hopefully someone can come up with something better.


Gord


On Tue, 13 May 2008 13:44:10 -0700, "Ron Patterson" <a.baba@mindspring.com>
wrote:

>Thanks Gord - this was what I was trying to remember.
>The only problem seems to be that if I create a new workbook and save it,
>there is not a backup created. But if I save it and then click save again
>there is a backup created. Any way to avoid having to remember to save it
>twice to create a backup.
>Thanks,
>Ron
>
>
>
>
>"Gord Dibben" <gorddibbATshawDOTca> wrote in message
>news:nrqj24dsai6ghjmhlmvstbjb59qa0f39bf@4ax.com.. .
>> To create a workbook and a worksheet template
>>
>> Open a new workbook. Customize as you wish, including the "Always create
>> a
>> backup" per Biff's direcdtion.
>>
>> File>Save As Type: scroll down to Excel Template(*.XLT) and select. Name
>> your
>> workbook "BOOK"(no quotes). Excel will add the .XLT to save as BOOK.XLT.
>>
>> Store this workbook in the XLSTART folder usually located at........
>>
>> C:\Documents and Settings\username\Application
>> Data\Microsoft\Excel\XLSTART
>>
>> This will be the default workbook for File>New or the Toolbar button
>> File>New or
>> CTRL + n
>>
>> WARNING................Do not use File>New...Blank Workbook or you will
>> get the
>> Excel default workbook.
>>
>> NOTE: Existing workbooks are not affected by these settings.
>>
>> You can also open a new workbook and delete all but one sheet. Customize
>> as
>> you wish then save this as SHEET.XLT in XLSTART folder also. It now
>> becomes
>> the default Insert>Sheet.
>>
>> More can be found on this in Help under "templates"(no quotes).
>>
>>
>> Gord Dibben MS Excel MVP
>>
>> On Tue, 13 May 2008 11:43:13 -0700, "Ron Patterson"
>> <a.baba@mindspring.com>
>> wrote:
>>
>>>Thanks Biff - but my fault.
>>>I think I asked the wrong question. I want EVERY file I create and save
>>>in
>>>Excel to AUTOMATICALLY create a backup file as a default. There is some
>>>way
>>>to do this I recall copying a model file to the XL Start folder - but I
>>>do
>>>not remember the details.
>>>Thanks,
>>>Ron
>>>
>>>
>>>
>>>"T. Valko" <biffinpitt@comcast.net> wrote in message
>>>news:OCqAaPStIHA.2068@TK2MSFTNGP05.phx.gbl...
>>>> Open the file
>>>> Goto File>Save As
>>>> On the very right hand side of the dialog box select Tools>General
>>>> Options>Always create backup>OK
>>>> Click the Save button
>>>> Answer yes to the prompt
>>>>
>>>>
>>>> --
>>>> Biff
>>>> Microsoft Excel MVP
>>>>
>>>>
>>>> "Ron Patterson" <a.baba@mindspring.com> wrote in message
>>>> news:0_KdnXJan9a1SLTVnZ2dnUVZ_hSdnZ2d@earthlink.co m...
>>>>> Can someone please run me through the drill to configure Excel 2002 to
>>>>> always save a backup file when the original is saved.
>>>>> Thanks,
>>>>> Ron Patterson
>>>>>
>>>>
>>>>
>>>

>>

>


Reply With Quote
  #9 (permalink)  
Old 05-14-2008, 02:17 AM
Ron Patterson
 
Posts: n/a
Re: always save backup

Well Gord, I am sure your code will work. I just have no idea how or where
to write it - or better - where to put it. All this stuff that is
second nature to you, is beyond my nascent computing skills.

However, testing has just shown me that if I create a new workbook and Save
it and then click on Save again before closing - I get an exact copy. And
every time I edit that file - if I can remember to click Save twice - it
will save the current copy.

This is probably easier for a stunted intellect.

Thanks to both of you for your kind assistance.

Ron


"Gord Dibben" <gorddibbATshawDOTca> wrote in message
news:hb2k245577enk1dvst3ekfbcec7d3r7am1@4ax.com...
> Biff has hit the nail on the head about having to save twice in order to
> have a
> backup one version earlier than current.
>
> This code will ensure that you save twice with the backup created when you
> click
> "Yes" on the "do you want to overwrite".
>
> The code will not run on subsequent openings of the created file because
> it will
> then have a path.
>
> Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As
> Boolean)
> Application.DisplayAlerts = False
> If ThisWorkbook.Path = "" Then
> ThisWorkbook.SaveAs Filename:=ActiveWorkbook.Name
> End If
> Application.DisplayAlerts = True
> End Sub
>
> Of course it means you will get the "enable macros" warning.
>
> Place the code in Thisworkbook module of the Book.xlt
>
> Hopefully someone can come up with something better.
>
>
> Gord
>
>
> On Tue, 13 May 2008 13:44:10 -0700, "Ron Patterson"
> <a.baba@mindspring.com>
> wrote:
>
>>Thanks Gord - this was what I was trying to remember.
>>The only problem seems to be that if I create a new workbook and save it,
>>there is not a backup created. But if I save it and then click save again
>>there is a backup created. Any way to avoid having to remember to save it
>>twice to create a backup.
>>Thanks,
>>Ron
>>
>>
>>
>>
>>"Gord Dibben" <gorddibbATshawDOTca> wrote in message
>>news:nrqj24dsai6ghjmhlmvstbjb59qa0f39bf@4ax.com. ..
>>> To create a workbook and a worksheet template
>>>
>>> Open a new workbook. Customize as you wish, including the "Always
>>> create
>>> a
>>> backup" per Biff's direcdtion.
>>>
>>> File>Save As Type: scroll down to Excel Template(*.XLT) and select.
>>> Name
>>> your
>>> workbook "BOOK"(no quotes). Excel will add the .XLT to save as BOOK.XLT.
>>>
>>> Store this workbook in the XLSTART folder usually located at........
>>>
>>> C:\Documents and Settings\username\Application
>>> Data\Microsoft\Excel\XLSTART
>>>
>>> This will be the default workbook for File>New or the Toolbar button
>>> File>New or
>>> CTRL + n
>>>
>>> WARNING................Do not use File>New...Blank Workbook or you will
>>> get the
>>> Excel default workbook.
>>>
>>> NOTE: Existing workbooks are not affected by these settings.
>>>
>>> You can also open a new workbook and delete all but one sheet.
>>> Customize
>>> as
>>> you wish then save this as SHEET.XLT in XLSTART folder also. It now
>>> becomes
>>> the default Insert>Sheet.
>>>
>>> More can be found on this in Help under "templates"(no quotes).
>>>
>>>
>>> Gord Dibben MS Excel MVP
>>>
>>> On Tue, 13 May 2008 11:43:13 -0700, "Ron Patterson"
>>> <a.baba@mindspring.com>
>>> wrote:
>>>
>>>>Thanks Biff - but my fault.
>>>>I think I asked the wrong question. I want EVERY file I create and save
>>>>in
>>>>Excel to AUTOMATICALLY create a backup file as a default. There is some
>>>>way
>>>>to do this I recall copying a model file to the XL Start folder - but I
>>>>do
>>>>not remember the details.
>>>>Thanks,
>>>>Ron
>>>>
>>>>
>>>>
>>>>"T. Valko" <biffinpitt@comcast.net> wrote in message
>>>>news:OCqAaPStIHA.2068@TK2MSFTNGP05.phx.gbl.. .
>>>>> Open the file
>>>>> Goto File>Save As
>>>>> On the very right hand side of the dialog box select Tools>General
>>>>> Options>Always create backup>OK
>>>>> Click the Save button
>>>>> Answer yes to the prompt
>>>>>
>>>>>
>>>>> --
>>>>> Biff
>>>>> Microsoft Excel MVP
>>>>>
>>>>>
>>>>> "Ron Patterson" <a.baba@mindspring.com> wrote in message
>>>>> news:0_KdnXJan9a1SLTVnZ2dnUVZ_hSdnZ2d@earthlink.co m...
>>>>>> Can someone please run me through the drill to configure Excel 2002
>>>>>> to
>>>>>> always save a backup file when the original is saved.
>>>>>> Thanks,
>>>>>> Ron Patterson
>>>>>>
>>>>>
>>>>>
>>>>
>>>

>>

>



Reply With Quote
  #10 (permalink)  
Old 05-14-2008, 03:50 AM
Gord Dibben
 
Posts: n/a
Re: always save backup

Ron

The code I posted will be placed in Thisworkbook module of the original Book.xlt

Open that original by right-click on it and "Open". That's the way you get the
original, not a copy, opened for edting.

With Book.xlt open right-click on the Excel icon left of "File" on menu.

Select View Code and copy/paste the code into that module.

Alt + q to return to Excel window.

Save the Book.xlt and close it out.

Now hit File>New and Book1 will open with a macro warning.

Enable macros.

Make a few changes to Book1 then save or save as.

One version will be saved immediately and you will be asked if you want to
overwrite that version.

Click yes and it re-saves with a backup named "backup of filename.xlk"



Gord

On Tue, 13 May 2008 18:17:13 -0700, "Ron Patterson" <a.baba@mindspring.com>
wrote:

>Well Gord, I am sure your code will work. I just have no idea how or where
>to write it - or better - where to put it. All this stuff that is
>second nature to you, is beyond my nascent computing skills.
>
>However, testing has just shown me that if I create a new workbook and Save
>it and then click on Save again before closing - I get an exact copy. And
>every time I edit that file - if I can remember to click Save twice - it
>will save the current copy.
>
>This is probably easier for a stunted intellect.
>
>Thanks to both of you for your kind assistance.
>
>Ron
>
>
>"Gord Dibben" <gorddibbATshawDOTca> wrote in message
>news:hb2k245577enk1dvst3ekfbcec7d3r7am1@4ax.com.. .
>> Biff has hit the nail on the head about having to save twice in order to
>> have a
>> backup one version earlier than current.
>>
>> This code will ensure that you save twice with the backup created when you
>> click
>> "Yes" on the "do you want to overwrite".
>>
>> The code will not run on subsequent openings of the created file because
>> it will
>> then have a path.
>>
>> Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As
>> Boolean)
>> Application.DisplayAlerts = False
>> If ThisWorkbook.Path = "" Then
>> ThisWorkbook.SaveAs Filename:=ActiveWorkbook.Name
>> End If
>> Application.DisplayAlerts = True
>> End Sub
>>
>> Of course it means you will get the "enable macros" warning.
>>
>> Place the code in Thisworkbook module of the Book.xlt
>>
>> Hopefully someone can come up with something better.
>>
>>
>> Gord
>>
>>
>> On Tue, 13 May 2008 13:44:10 -0700, "Ron Patterson"
>> <a.baba@mindspring.com>
>> wrote:
>>
>>>Thanks Gord - this was what I was trying to remember.
>>>The only problem seems to be that if I create a new workbook and save it,
>>>there is not a backup created. But if I save it and then click save again
>>>there is a backup created. Any way to avoid having to remember to save it
>>>twice to create a backup.
>>>Thanks,
>>>Ron
>>>
>>>
>>>
>>>
>>>"Gord Dibben" <gorddibbATshawDOTca> wrote in message
>>>news:nrqj24dsai6ghjmhlmvstbjb59qa0f39bf@4ax.com ...
>>>> To create a workbook and a worksheet template
>>>>
>>>> Open a new workbook. Customize as you wish, including the "Always
>>>> create
>>>> a
>>>> backup" per Biff's direcdtion.
>>>>
>>>> File>Save As Type: scroll down to Excel Template(*.XLT) and select.
>>>> Name
>>>> your
>>>> workbook "BOOK"(no quotes). Excel will add the .XLT to save as BOOK.XLT.
>>>>
>>>> Store this workbook in the XLSTART folder usually located at........
>>>>
>>>> C:\Documents and Settings\username\Application
>>>> Data\Microsoft\Excel\XLSTART
>>>>
>>>> This will be the default workbook for File>New or the Toolbar button
>>>> File>New or
>>>> CTRL + n
>>>>
>>>> WARNING................Do not use File>New...Blank Workbook or you will
>>>> get the
>>>> Excel default workbook.
>>>>
>>>> NOTE: Existing workbooks are not affected by these settings.
>>>>
>>>> You can also open a new workbook and delete all but one sheet.
>>>> Customize
>>>> as
>>>> you wish then save this as SHEET.XLT in XLSTART folder also. It now
>>>> becomes
>>>> the default Insert>Sheet.
>>>>
>>>> More can be found on this in Help under "templates"(no quotes).
>>>>
>>>>
>>>> Gord Dibben MS Excel MVP
>>>>
>>>> On Tue, 13 May 2008 11:43:13 -0700, "Ron Patterson"
>>>> <a.baba@mindspring.com>
>>>> wrote:
>>>>
>>>>>Thanks Biff - but my fault.
>>>>>I think I asked the wrong question. I want EVERY file I create and save
>>>>>in
>>>>>Excel to AUTOMATICALLY create a backup file as a default. There is some
>>>>>way
>>>>>to do this I recall copying a model file to the XL Start folder - but I
>>>>>do
>>>>>not remember the details.
>>>>>Thanks,
>>>>>Ron
>>>>>
>>>>>
>>>>>
>>>>>"T. Valko" <biffinpitt@comcast.net> wrote in message
>>>>>news:OCqAaPStIHA.2068@TK2MSFTNGP05.phx.gbl...
>>>>>> Open the file
>>>>>> Goto File>Save As
>>>>>> On the very right hand side of the dialog box select Tools>General
>>>>>> Options>Always create backup>OK
>>>>>> Click the Save button
>>>>>> Answer yes to the prompt
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Biff
>>>>>> Microsoft Excel MVP
>>>>>>
>>>>>>
>>>>>> "Ron Patterson" <a.baba@mindspring.com> wrote in message
>>>>>> news:0_KdnXJan9a1SLTVnZ2dnUVZ_hSdnZ2d@earthlink.co m...
>>>>>>> Can someone please run me through the drill to configure Excel 2002
>>>>>>> to
>>>>>>> always save a backup file when the original is saved.
>>>>>>> Thanks,
>>>>>>> Ron Patterson
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>

>>

>


Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Excel


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:48 PM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Mortgages | Shares | Online Advertising | Internet Advertising | Mortgages



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114