Solved

Excel 2003 Auto Save With Macro

Posted on 2014-09-22
2
823 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

785 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