Thread
:
Put a timer on a MsgBox?
View Single Post
#
5
Posted to microsoft.public.excel.programming
Chip Pearson
external usenet poster
Posts: 7,247
Put a timer on a MsgBox?
returning the default value (Yes, in this example).
Not correct. If the Popup times out with no user input, the
result is -1. Sorry for any confusion.
--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
"Chip Pearson" wrote in message
...
Joe,
Set a reference to "Windows Script Host Object Model" and then
use
code like
Dim SH As IWshRuntimeLibrary.WshShell
Set SH = New IWshRuntimeLibrary.WshShell
SH.Popup "Hello World", 5, "Title", vbYesNo
This will show a message box for 5 seconds, and then disappear,
returning the default value (Yes, in this example).
--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
"Joe 90" wrote in message
...
Is vba able to put a timer on a MSgBox, so that OK is
"clicked"
after a
specified time and a macro/code can continue?
I have tried allsorts but with Msgbox one seems to get
complete
freezing of
the app and vba.
Any help much appreciated.
Joe
Reply With Quote
Chip Pearson
View Public Profile
Find all posts by Chip Pearson