ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Flash a MsgBox (https://www.excelbanter.com/excel-programming/326048-flash-msgbox.html)

Stever

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.

Jim Thomlinson[_3_]

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.


Bob Phillips[_6_]

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.




Tom Ogilvy

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.





All times are GMT +1. The time now is 01:00 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com