CookieMonster76
Board Regular
- Joined
- Apr 30, 2015
- Messages
- 201
Hi
I've found a couple of ways to display a message box for a set time, this is one of them.
Dim AckTime As Integer, InfoBox As Object
Set InfoBox = CreateObject("WScript.Shell")
AckTime = 10
Select Case InfoBox.Popup("Click OK (this window closes automatically after 10 seconds).", AckTime, "This is your Message Box", 0)
Case 1, -1
Exit Sub
End Select
The works when it's run in an already open workbook, but I want to display a message for a short period when the workbook opens for a short period. Using the code above the message appears but then doesn't go away after 20 seconds.
Is there a way to make it do so?
Thanks
Paul
I've found a couple of ways to display a message box for a set time, this is one of them.
Dim AckTime As Integer, InfoBox As Object
Set InfoBox = CreateObject("WScript.Shell")
AckTime = 10
Select Case InfoBox.Popup("Click OK (this window closes automatically after 10 seconds).", AckTime, "This is your Message Box", 0)
Case 1, -1
Exit Sub
End Select
The works when it's run in an already open workbook, but I want to display a message for a short period when the workbook opens for a short period. Using the code above the message appears but then doesn't go away after 20 seconds.
Is there a way to make it do so?
Thanks
Paul