I am trying to generate a popup that closes after a given WaitTime in seconds.
WaitTime
I consulted this link and this link.
I tried to apply the method from
The following code works for me:
Sub TimeBasedPopUp() Dim WaitTime As Integer WaitTime = 1 Select Case CreateObject("WScript.Shell").Popup("The message box will close in 1 second.",_ WaitTime, "MS Excel") Case 1, -1
End Select
End Sub