Wait for action

  • Thread starter Thread starter Johan
  • Start date Start date
J

Johan

Hallo!

I want to make a macro that show a userform with a button.
If the user have not clicked the button within 15 sec I want the code to
continue.
If the user click the button the code will end.

Thanks for any help!

Johan
 
Thanks for your help joel, however the code goes to Error and gives the
following message:

Run-time error '1004':
Metode 'OnTime' of Object'_Application' failed

Any help on that?

Thanks
Johan

joel skrev:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

End a procedure form a UserForm 3
End a procedure from a UserForm 1
automation error 0
How to enumerate buttons on user form 2
Slow macro 10
macro command button click 1
Close WorkBook 5
stringed userforms won't hide 6

Back
Top