A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

WshShell Timeout



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 17th 06, 05:03 PM posted to microsoft.public.outlook.program_vba
David
external usenet poster
 
Posts: 196
Default WshShell Timeout

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
Ads
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook should have a longer server timeout period or none at all Predator Outlook - Installation 0 February 3rd 06 12:31 PM


All times are GMT +1. The time now is 06:41 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.