Display popup for a time period in Excel

前端 未结 5 1279
萌比男神i
萌比男神i 2021-01-23 17:41

I am trying to generate a popup that closes after a given WaitTime in seconds.

I consulted this link and this link.

I tried to apply the method from

5条回答
  •  温柔的废话
    2021-01-23 18:43

    You're just missing the Select Case:

    WaitTime = 1
    Select Case TemporalBox = WScriptShell.Popup("The message box will close in 1 second.", _
    WaitTime, "File processed")
        Case 1, -1
    End Select
    

    I tested and it works...

提交回复
热议问题