How can I have a userform open for only three minutes before it unloads (saving what was inputted during that time)?
I have a form where the users only have 3min to finish (a Spatial Psych test). I have tried the following code but it doesn't work. (just experimenting with 10 seconds for now.)
I haven't put all the questions in the form yet. I will when I know I can get the timer to work. If not, they get to do it on paper!
I have a form where the users only have 3min to finish (a Spatial Psych test). I have tried the following code but it doesn't work. (just experimenting with 10 seconds for now.)
I haven't put all the questions in the form yet. I will when I know I can get the timer to work. If not, they get to do it on paper!
Code:
'module
Option Explicit
Private Sub KillTheForm()
ActiveWorkbook.Save
Unload UserFormSpatial
End Sub
Code:
'Userform object
Option Explicit
Private Sub UserFormSpatial_Activate()
Application.OnTime (Now + TimeValue("00:00:10")), "KillTheForm"
End Sub