Solved

Excel 2003 Auto Save With Macro

Posted on 2014-09-22
2
869 Views
Last Modified: 2014-09-29
I have an Excel worbook with operators using in 2003.  

Instead of the AutoRecover function, I would like a macro to run automatically (not on close) which would automatically save the workbook periodically, say every 15 minutes, to a network share.

Could someone help with a sample macro or script to accomplish this?
0
Comment
Question by:mrherndon
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 26

Accepted Solution

by:
ProfessorJimJam earned 500 total points
ID: 40337204
Public dTime As Date
 
Sub AutoSave()
    dTime = Time + TimeValue("00:15:00")
    With Application
        .OnTime dTime, "AutoSave"
        .EnableEvents = False
        .DisplayAlerts = False
        ThisWorkbook.Save "FilePath&NameHere(no .xls)"
        .EnableEvents = True
    End With
End Sub

 In ThisWorkbook Module;

VB:
Private Sub Workbook_BeforeClose(Cancel As Boolean)
    Application.OnTime dTime, "AutoSave", , False
End Sub
 
Private Sub Workbook_Open()
    dTime = Time + TimeValue("00:15:00")
    Application.OnTime dTime, "AutoSave"
End Sub
0
 
LVL 26

Expert Comment

by:ProfessorJimJam
ID: 40337206
or you can also use the AutoSafe add-in from http://www.jkp-ads.com/Download.asp
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa‚Ķ

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question