"CreateObject("WScript.Shell").PopUp "strMsg", 5" does not close after 5 seconds

48 Views Asked by At

Windows 10, Office 2003 the following code puts up msg box that goes away with no user input after 5 seconds

CreateObject("WScript.Shell").PopUp "strMsg", 5

but after moving to Windows 11/Office 2019 the msgbox no longer goes away automatically. The user has to select the OK button. I thought his was working in his environment but today it's not working.

Is there something that I need to do?

I was expecting a msgbox that would be displayed for 5 seconds and then go away with no user intervention.

0

There are 0 best solutions below