Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Flash a MsgBox
I'd like to flash a Msgbox on the screen after a process has finished.
However, I don't want the user to have to press enter (i.e. vbOKCancel). Is there a way to flash a message and won't require the user to click thru it?? Thanks. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Flash a MsgBox
Nope msgboxes require user input. You could however load a form that is on a
timer... In the on open for the form use something like this application.ontime now + timevalue("00:00:10"), "unload me" That code is untested but I think it will work. HTH "Stever" wrote: I'd like to flash a Msgbox on the screen after a process has finished. However, I don't want the user to have to press enter (i.e. vbOKCancel). Is there a way to flash a message and won't require the user to click thru it?? Thanks. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Flash a MsgBox
Here is an example of a timed MsgBox
Dim cTime As Long Dim WSH As Object Set WSH = CreateObject("WScript.Shell") cTime = 1 ' 1 secs Select Case WSH.Popup("Open an Excel file?!", cTime, "Question", vbOKCancel) Case vbOK MsgBox "You clicked OK" Case vbCancel MsgBox "You clicked Cancel" Case -1 MsgBox "Timed out" Case Else End Select As you can see, it can be OK, Cancel or timed out. -- HTH RP (remove nothere from the email address if mailing direct) "Jim Thomlinson" wrote in message ... Nope msgboxes require user input. You could however load a form that is on a timer... In the on open for the form use something like this application.ontime now + timevalue("00:00:10"), "unload me" That code is untested but I think it will work. HTH "Stever" wrote: I'd like to flash a Msgbox on the screen after a process has finished. However, I don't want the user to have to press enter (i.e. vbOKCancel). Is there a way to flash a message and won't require the user to click thru it?? Thanks. |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Flash a MsgBox
As I recall, you can't execute a command with Ontime. You can executed a
macro that has the command. -- Regards, Tom Ogilvy "Jim Thomlinson" wrote in message ... Nope msgboxes require user input. You could however load a form that is on a timer... In the on open for the form use something like this application.ontime now + timevalue("00:00:10"), "unload me" That code is untested but I think it will work. HTH "Stever" wrote: I'd like to flash a Msgbox on the screen after a process has finished. However, I don't want the user to have to press enter (i.e. vbOKCancel). Is there a way to flash a message and won't require the user to click thru it?? Thanks. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Flash within Excel | New Users to Excel | |||
Flash in Excel | Excel Discussion (Misc queries) | |||
Question on Flash | Excel Discussion (Misc queries) | |||
USB Flash Drive | Excel Discussion (Misc queries) | |||
excel+flash | Excel Discussion (Misc queries) |