Plaats deze 2 codes in een "Module":
Dim DownTime As Date
Sub SetTime()
DownTime = Now + TimeValue("00:10:00")
Application.OnTime DownTime, "Sluiten"
End Sub
Sub Disable()
On Error Resume Next
Application.OnTime EarliestTime:=DownTime, Procedure:="Sluiten", Schedule = False
End Sub
-------------------------------------------------------------------------------
Plaats deze 4 code in "This WorkBook":
Private Sub WorkBook_Open()
Call SetTime
End Sub
Private Sub WorkBook_BeforeClose(Cancel As Boolean)
Call Disable
End Sub
Private Sub WorkBook_SheetCalculate(Byval Sh As Object)
Call Disable
Call SetTime
End Sub
Private Sub WorkBook_SheetSelection(Byval Target As Excel.Range)
Call Disable
Call SetTime
End Sub
Als je de codes goed leest, dan zul je begrijpen wat er staat. Ik ga er wel van uit dat je er een beetje verstand van hebt.
Gaat helemaal goed komen. Succes :thumb: