JAWChemist
Member
- Outlook version
- Email Account
- POP3
ISSUE
The popup message box (object.Popup) does not time out and close after 2 seconds in Outlook.
Outlook VbaProject.OTM has no other code except that listed below.
It works in Excel, Word, Access, PowerPoint and Publisher.
QUESTIONS
Can it be made to work?
Why does it work in other MS Office programs but not Outlook?
Has this issue been propagated to new versions of MS Office?
RESEARCH
The best explanation that might be related is Popup won't close automatically where mr_unreliable (aka jw) suggests to Steve Ginn that his app (dbWorks) has it own messaging timer. Since it is not expecting the notification, it ignores it and does not forward the time's up to wscript shell popup. I would expect Outlook to have a message loop of its own and the timeout not get passed along.
ENVIRONMENT
AMD Ryzen 5 2600
Window 10 10.0.19041 (64)
MS Office Professional 2007 (12.0.6785.5000) SP3 MSO
<code>
Sub MBT()
Dim MsgBoxTimedClose As Object, MsgBoxTimedCloseButton As Integer
Set MsgBoxTimedClose = CreateObject("WScript.Shell")
MsgBoxTimedCloseButton = MsgBoxTimedClose.PopUp("Close after 2 seconds", timeout, "MsgBoxTitle", 0)
End Sub
</code>
The popup message box (object.Popup) does not time out and close after 2 seconds in Outlook.
Outlook VbaProject.OTM has no other code except that listed below.
It works in Excel, Word, Access, PowerPoint and Publisher.
QUESTIONS
Can it be made to work?
Why does it work in other MS Office programs but not Outlook?
Has this issue been propagated to new versions of MS Office?
RESEARCH
The best explanation that might be related is Popup won't close automatically where mr_unreliable (aka jw) suggests to Steve Ginn that his app (dbWorks) has it own messaging timer. Since it is not expecting the notification, it ignores it and does not forward the time's up to wscript shell popup. I would expect Outlook to have a message loop of its own and the timeout not get passed along.
ENVIRONMENT
AMD Ryzen 5 2600
Window 10 10.0.19041 (64)
MS Office Professional 2007 (12.0.6785.5000) SP3 MSO
<code>
Sub MBT()
Dim MsgBoxTimedClose As Object, MsgBoxTimedCloseButton As Integer
Set MsgBoxTimedClose = CreateObject("WScript.Shell")
MsgBoxTimedCloseButton = MsgBoxTimedClose.PopUp("Close after 2 seconds", timeout, "MsgBoxTitle", 0)
End Sub
</code>