Flash Screen/Timeout msg box

  • Thread starter Thread starter kiran kumar
  • Start date Start date
K

kiran kumar

Hi,

I would like to create a flash screen window/message box/popup window
which will close close automatically after specified time, how do I
create it give me a basic idea.

Thanks and Regards
Kiran
 
Hi,

Use OnTime function:
'place this code behind userform1
Private Sub UserForm_Activate()
Application.OnTime Now + TimeValue("00:00:02"), "CloseMsg"
End Sub

'place this code behind standard module:
Sub CloseMsg()
Unload UserForm1
End Sub

then run UserForm1 will close in 2 second after activate
 

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

Back
Top