New Excel Forum

This forum has been moved to TeachExcel.com

Ask all future questions in the New Excel Forum.

ExcelKey

auto save

Macros, VBA, Excel Automation, etc.

auto save

Postby carrie3119 » Tue Jan 03, 2012 5:11 pm

can an excel sheet have an auto save
  • 0

carrie3119
Rookie
 
Posts: 1
Joined: Jan 3, 2012
Reputation: 0

Re: auto save

Postby Don » Tue Jan 03, 2012 7:39 pm

Hi and welcome to the forum!

Do you mean a way to have it automatically do the same thing as it does when you click the save button? If so, follow these steps:

Insert a macro into your workbook:

Code: Select all
Sub AutoRun()
     
    ThisWorkbook.Save

    Application.OnTime Now + TimeValue("00:03:00"), "AutoRun"
     
End Sub


Change the 3 in "00:03:00" to however many minutes you want between the auto-saves. Then, just make sure to run the macro once to get it started.

hope this helps :D


*moved to the programming forum
  • 0

Don
Moderator
 
Posts: 733
Joined: Dec 4, 2011
Reputation: 2
Excel Version: 2010


Return to Macros and VBA Questions

Who is online

Users browsing this forum: No registered users and 217 guests