Solved

Excel 2003 Auto Save With Macro

Posted on 2014-09-22
2
789 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
  • 2
2 Comments
 
LVL 25

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 25

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
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.

746 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now