RockandGrohl
Well-known Member
- Joined
- Aug 1, 2018
- Messages
- 790
- Office Version
- 365
- Platform
- Windows
Hi guys, can I unload a userform if the answer is not provided in a text box within 5 seconds?
That's some code I've found, but surely the code will just hang on that for 5 seconds, right? I want to have an image show up in the userform. If the user guesses the correct subject, then it moves on to the next image. They have 5 seconds to guess each image.
The part I'm struggling with is how to time it in the background. Thanks!
VBA Code:
Application.OnTime Now + TimeValue("00:00:05"), "KillForm1"
That's some code I've found, but surely the code will just hang on that for 5 seconds, right? I want to have an image show up in the userform. If the user guesses the correct subject, then it moves on to the next image. They have 5 seconds to guess each image.
The part I'm struggling with is how to time it in the background. Thanks!