ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Can I get a popup MsgBox without stopping/pausing VBA program? (https://www.excelbanter.com/excel-programming/423598-can-i-get-popup-msgbox-without-stopping-pausing-vba-program.html)

Gum

Can I get a popup MsgBox without stopping/pausing VBA program?
 
I would like to get a MsgBox pop up to alert the user to a condition without
pausing or stopping the execution of the program. The MsgBox would have the
information and a button to close.

kirkm[_8_]

Can I get a popup MsgBox without stopping/pausing VBA program?
 
On Fri, 6 Feb 2009 22:28:01 -0800, Gum wrote:

I would like to get a MsgBox pop up to alert the user to a condition without
pausing or stopping the execution of the program. The MsgBox would have the
information and a button to close.


I'm pretty sure a MsgBox is modal.

What I'd do is design a Form to emulate a message box. That should do
the job nicely.

Cheers - Kirk

Stringer[_8_]

Can I get a popup MsgBox without stopping/pausing VBA program?
 

Gum;218173 Wrote:
I would like to get a MsgBox pop up to alert the user to a condition
without
pausing or stopping the execution of the program. The MsgBox would
have the
information and a button to close.


I Doubt it, is the condition the progress of the running macro?


--
Stringer
------------------------------------------------------------------------
Stringer's Profile: http://www.thecodecage.com/forumz/member.php?userid=117
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=59957


Dave Peterson

Can I get a popup MsgBox without stopping/pausing VBA program?
 
I take the easy route and use:

Application.statusbar = "some important notice here"
....

And at the end of the code:

application.statusbar = false

To give it back to excel.

Gum wrote:

I would like to get a MsgBox pop up to alert the user to a condition without
pausing or stopping the execution of the program. The MsgBox would have the
information and a button to close.


--

Dave Peterson

Alan Forsyth

Can I get a popup MsgBox without stopping/pausing VBA program?
 
?B?R3Vt?= wrote in
:

I would like to get a MsgBox pop up to alert the user to a condition
without pausing or stopping the execution of the program. The MsgBox
would have the information and a button to close.


Play with these. :-)

Sub CheckMessage()
Debug.Print Now
BriefMessage "This is the Message", 2, "This is the Title"
Debug.Print Now
BriefMessage "This is the Message", 4
Debug.Print Now
End Sub

Sub BriefMessage(strMessage, intSeconds, _
Optional strTitle As String)
If Len(Nz(strTitle, "")) = 0 Then
strTitle = "Closes in " & CStr(intSeconds) & " Seconds"
End If
Dim wsh As Object
Set wsh = CreateObject("WScript.Shell")
wsh.PopUp strMessage, intSeconds, strTitle
Set wsh = Nothing
End Sub

Cheers,
Alan Forsyth


All times are GMT +1. The time now is 07:23 PM.

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