HELP - Job at stake !

JOEL-S

New Member
Joined
Sep 23, 2010
Messages
3
I am a systems person and not a programmer. I need to have an MS EXCEL template that will automatically save itself every 5 minutes.
If I don't get this done today, I am FIRED !

Please assist.

We have two different workstations - one has MS EXCEL 2003 and the other MS EXCEL 2007 - I can upgrade the EXCEL 2003 to MS 2007 so if the template can be in MS EXCEL 2007 I would be forever grateful.

Joel
 
Last edited by a moderator:
This is the solution. In the ThisWorkbook module

Code:
Private Sub Workbook_Open()
Application.OnTime Now + TimeValue("00:05:00"), "MyMacro"
End Sub

Private Sub Workbook_BeforeClose(Cancel As Boolean)       
Application.OnTime dTime, "MyMacro", , False 
End Sub

In a regular module

Code:
Public dTime As Date

Sub MyMacro()
dTime = Now + TimeValue("00:05:00")
Application.OnTime dTime, "MyMacro"
ThisWorkbook.Save
End Sub
 
Upvote 0

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

Forum statistics

Threads
1,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top