Save Delay

raccoon588

Board Regular
Joined
Aug 5, 2016
Messages
118
I have the following code. Is it possible to delay the save by a minute? so once the change is made to the cells it will save the workbook a minute later?

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Range("K6:k8800"), Target) Is Nothing Then ActiveWorkbook.Save
If Not Intersect(Target, Range("K:K")) Is Nothing Then
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
.
Code:
Private Sub Worksheet_Change(ByVal Target As Range)


If Not Intersect(Range("K6:k8800"), Target) Is Nothing Then 
	Application.Wait (Now + TimeValue("0:01:00"))
	ActiveWorkbook.Save
End If


If Not Intersect(Target, Range("K:K")) Is Nothing Then
 
Upvote 0
is there a way that if i remove the save on the value change that i can simply just auto save the file every 15 mins?
 
Upvote 0
.
Code:
Option Explicit


Sub sveMe()
    Application.DisplayAlerts = False
    ActiveWorkbook.Save
    Application.OnTime Now + TimeValue("00:15:00"), "sveMe"
    Application.DisplayAlerts = True
End Sub
 
Upvote 0

Forum statistics

Threads
1,223,239
Messages
6,170,947
Members
452,368
Latest member
jayp2104

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