Save file x minutes after a value is entered

raceymacey

New Member
Joined
Oct 4, 2018
Messages
2
Hi,

I have created a spreadsheet for uses to record production testing results ad this forum has been essential in automating some of the task. But now if find that users are not saving the results.

I know I can use the OnTime application to autosave the file but I only want this to kick in after a specific cell (say F11) has been populated.

what would be the code for this?

many thanks
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

Yongle

Well-known Member
Joined
Mar 11, 2015
Messages
6,977
Office Version
  1. 365
Platform
  1. Windows
Place in sheet module (right-click sheet tab \ View Code \ paste code in code window \ {alt}{F11} to go back to Excel)

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    If Not Intersect(Range("F11"), Target) Is Nothing Then ThisWorkbook.Save
End Sub
 

Yongle

Well-known Member
Joined
Mar 11, 2015
Messages
6,977
Office Version
  1. 365
Platform
  1. Windows
Why complicate the code? :confused:
VBA will simply save again with corrected value

You could modify the code I gave you earlier and insert a delay before saving ....
Code:
If Not .... then
    [COLOR=#ff0000]DELAY goes here[/COLOR]
   ThisWorkbook.Save
End if
 

Forum statistics

Threads
1,141,310
Messages
5,705,677
Members
421,404
Latest member
Mikecollo

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
Top