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

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
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
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

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