WshShell Timeout

D

David

Hi there,

I use some code in Excel all the time (or quite a lot) that provides a
timeout msgbox (through WshShell). That is, a msgbox that times out after a
set number of seconds.

However, when I try to use this code in Outlook it does not work. The msgbox
still comes up, but it does not time out.

It is very simple code (as below):

--------------

Set WshShell = CreateObject("WScript.Shell")

RetValue = WshShell.Popup("Do you want to run the automatic distribution
procedure?", 5, "Start procedure?", btnYesNo)

---------------

The 5 indicates the # of seconds and btnYesNo is a constant for the buttons.

Does anyone have any ideas, or can anyone help?

Thanks very much in advance,

David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top