Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 468
Default Macro to save workbook

Hi, i need a macro to save a workbook every 2 minutes.
Can this be done?
Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Macro to save workbook

--Why dont you use the setting from menu ToolsOptionsSaveSettings'Save
AutoRecover info every'

--A macro would look like the below
Sub AutoSave()
ActiveWorkbook.Save
'OR ThisWorkbook.Save '(as per your requirement)
Application.OnTime Now + TimeSerial(0, 2, 0), "AutoSave"
End Sub

If this post helps click Yes
---------------
Jacob Skaria


"puiuluipui" wrote:

Hi, i need a macro to save a workbook every 2 minutes.
Can this be done?
Thanks!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 468
Default Macro to save workbook

Hi Jacob, is not autosaving the workbook. It's working only if i run the
macro. Can this macro be made to run by itself every 2 minutes?
Thanks!

"Jacob Skaria" wrote:

--Why dont you use the setting from menu ToolsOptionsSaveSettings'Save
AutoRecover info every'

--A macro would look like the below
Sub AutoSave()
ActiveWorkbook.Save
'OR ThisWorkbook.Save '(as per your requirement)
Application.OnTime Now + TimeSerial(0, 2, 0), "AutoSave"
End Sub

If this post helps click Yes
---------------
Jacob Skaria


"puiuluipui" wrote:

Hi, i need a macro to save a workbook every 2 minutes.
Can this be done?
Thanks!

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Macro to save workbook

Version prior to Excel 2002 had a real AutoSave which overwrote the workbook
with a save at specified time intervals. Good or bad feature depending on
how you look at it.

Versions since 2000 use Auto Recovery which only creates a timed but
temporary backup file which is deleted when the workbook is saved or closed
normally.

Auto Recovery is a safety valve in the event of an Excel crash while a
workbook is open.

Jan Karel Pieterse has an addin called AutoSafe
which doen't alert before saving.

http://www.jkp-ads.com/download.asp

(look for AutoSafe.zip)

It doesn't overwrite the existing workbook when it saves. It saves to a
user selectable folder. And when it's done, it either deletes these backups
(or puts them in the recycle bin). And the user can always restore the
backups from the recycle bin.

If you still have access to the AutoSave add-in from Excel 2000 it may work
with 2007................it did work with 2002 and 2003

I can send you the Autosave.xla from XL97 which apparently works under 2007

I know it works for 2002 and 2003 but have not tested for 2007.


Gord Dibben MS Excel MVP

On Wed, 7 Oct 2009 12:07:01 -0700, puiuluipui
wrote:

Hi Jacob, is not autosaving the workbook. It's working only if i run the
macro. Can this macro be made to run by itself every 2 minutes?
Thanks!

"Jacob Skaria" wrote:

--Why dont you use the setting from menu ToolsOptionsSaveSettings'Save
AutoRecover info every'

--A macro would look like the below
Sub AutoSave()
ActiveWorkbook.Save
'OR ThisWorkbook.Save '(as per your requirement)
Application.OnTime Now + TimeSerial(0, 2, 0), "AutoSave"
End Sub

If this post helps click Yes
---------------
Jacob Skaria


"puiuluipui" wrote:

Hi, i need a macro to save a workbook every 2 minutes.
Can this be done?
Thanks!


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 just one sheet to new workbook. Guy[_2_] Excel Worksheet Functions 2 January 27th 09 09:32 PM
Macro to save Single Page to another workbook Jenny B. Excel Discussion (Misc queries) 2 January 3rd 08 10:02 PM
writing a macro to save a workbook Brian Excel Worksheet Functions 2 November 20th 07 04:02 AM
save workbook as current date using a macro ExcelJon Excel Discussion (Misc queries) 2 June 21st 06 03:05 AM
Macro: Exit active workbook without save? Don Excel Worksheet Functions 0 May 20th 05 06:47 AM


All times are GMT +1. The time now is 12:51 AM.

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"