?
Solved

Excel 2003 Auto Save With Macro

Posted on 2014-09-22
2
Medium Priority
?
939 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 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
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 use a scrolling table in Microsoft Excel using the INDEX function.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

765 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