Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Close msgbox ?
Is it possible to close a msgbox that contains no buttons ?
e.g. msg = "Please wait ..." style = vbInformation title = "something ... :)" msgbox(msg, style, title) .. .. .. 'some code than I need to close the msgbox automatically I know that another way is to insert a UserForm and show it and hide. -- icq 25372592 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Close msgbox ?
It is not possible to have a MsgBox without buttons. Even a style of
vbInformation gives an OK button. -- HTH RP (remove nothere from the email address if mailing direct) "Buddy Lee" wrote in message ... Is it possible to close a msgbox that contains no buttons ? e.g. msg = "Please wait ..." style = vbInformation title = "something ... :)" msgbox(msg, style, title) . . . 'some code than I need to close the msgbox automatically I know that another way is to insert a UserForm and show it and hide. -- icq 25372592 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Close msgbox ?
Buddy Lee wrote: Is it possible to close a msgbox that contains no buttons ? e.g. msg = "Please wait ..." style = vbInformation title = "something ... :)" msgbox(msg, style, title) . . . 'some code than I need to close the msgbox automatically I know that another way is to insert a UserForm and show it and hide. -- icq 25372592 Hi, can't help you with the no button thing, but the code below will automatically close the msgbox after 3 seconds... hope this helps ste Sub closemsgbox() With CreateObject("Wscript.Shell") .Popup "This message will be displayed for 3 seconds" _ , 3, "Self Closing MsgBox", 64 End With End Sub |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Close msgbox ?
thx
-- icq 25372592 "ste mac" píse v diskusním príspevku oups.com... Buddy Lee wrote: Is it possible to close a msgbox that contains no buttons ? e.g. msg = "Please wait ..." style = vbInformation title = "something ... :)" msgbox(msg, style, title) . . . 'some code than I need to close the msgbox automatically I know that another way is to insert a UserForm and show it and hide. -- icq 25372592 Hi, can't help you with the no button thing, but the code below will automatically close the msgbox after 3 seconds... hope this helps ste Sub closemsgbox() With CreateObject("Wscript.Shell") .Popup "This message will be displayed for 3 seconds" _ , 3, "Self Closing MsgBox", 64 End With End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
code to close an excel sheet without saving it .(via msgbox) | Excel Worksheet Functions | |||
Novice - MsgBox Yes/No - Continue if Yes, Close if No | Excel Discussion (Misc queries) | |||
Close a MsgBox | Excel Programming | |||
DISABLE CLOSE MSGBOX ON CLICK "X" | Excel Programming | |||
auto close while MsgBox is open | Excel Programming |