Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I need to have a message box (vbokonly) close automatically if it has been
open for longer than 10 seconds. thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I think all code execution stops while a message box or input box is
displayed. You could make your own Userform to look like a Msgbox and use the ontime method to close it after a period of time. ed wrote: I need to have a message box (vbokonly) close automatically if it has been open for longer than 10 seconds. thanks |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Here is some code for a timed message box...
'***requires reference to "Windows Script Host Object Model" Public Sub MessageTest() Dim SH As IWshRuntimeLibrary.WshShell Dim Res As Long Set SH = New IWshRuntimeLibrary.WshShell Res = SH.Popup(Text:="Click Me", secondstowait:=10, _ Title:="Hello, World", Type:=vbOKOnly) End Sub -- HTH... Jim Thomlinson "ed" wrote: I need to have a message box (vbokonly) close automatically if it has been open for longer than 10 seconds. thanks |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Nice Jim!
"Jim Thomlinson" wrote in message ... Here is some code for a timed message box... '***requires reference to "Windows Script Host Object Model" Public Sub MessageTest() Dim SH As IWshRuntimeLibrary.WshShell Dim Res As Long Set SH = New IWshRuntimeLibrary.WshShell Res = SH.Popup(Text:="Click Me", secondstowait:=10, _ Title:="Hello, World", Type:=vbOKOnly) End Sub .... |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
When shutting down my computer, message says Excel can't close. | Excel Discussion (Misc queries) | |||
Warning message on file close | Excel Worksheet Functions | |||
Force a Message Box to close unanswered | Excel Programming | |||
Close a message box | Excel Programming | |||
On Close Macro - stop warning message | Excel Programming |