Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi All,
Is there any method to display a message during a lengthy process to inform the user on progress of the process without stopping execution as MsgBox always does? Stefi |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is the problem that you don't want the code interrupted, or that you want
the MsgBox timed, and not depend upon a user responding. If the latter, use Dim cTime As Long Dim WSH As Object Set WSH = CreateObject("WScript.Shell") cTime = 10 ' 10 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 -- HTH Bob Phillips "Stefi" wrote in message ... Hi All, Is there any method to display a message during a lengthy process to inform the user on progress of the process without stopping execution as MsgBox always does? Stefi |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The latter was the case, and you gave me a good solution, thank you!
Nevertheless, Chris's suggestion Application.statusbar = "Message" is simpler and sufficient in my case. Regards, Stefi €˛Bob Phillips€¯ ezt Ć*rta: Is the problem that you don't want the code interrupted, or that you want the MsgBox timed, and not depend upon a user responding. If the latter, use Dim cTime As Long Dim WSH As Object Set WSH = CreateObject("WScript.Shell") cTime = 10 ' 10 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 -- HTH Bob Phillips "Stefi" wrote in message ... Hi All, Is there any method to display a message during a lengthy process to inform the user on progress of the process without stopping execution as MsgBox always does? Stefi |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Would it be feasable to show the progess on a new sheet and periodically
switch back on the screen updating so that the user can see how the process is updating. Or can you use the Application.statusbar = "Message" to keep the user informed? Chris "Stefi" wrote in message ... Hi All, Is there any method to display a message during a lengthy process to inform the user on progress of the process without stopping execution as MsgBox always does? Stefi |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() what about something like: http://www.cpearson.com/excel/Progress.ht -- MattShoreso ----------------------------------------------------------------------- MattShoreson's Profile: http://www.excelforum.com/member.php...nfo&userid=347 View this thread: http://www.excelforum.com/showthread.php?threadid=38001 |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() the LED class j back link on page is pretty funky in a geeky type o way -- MattShoreso ----------------------------------------------------------------------- MattShoreson's Profile: http://www.excelforum.com/member.php...nfo&userid=347 View this thread: http://www.excelforum.com/showthread.php?threadid=38001 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Code Execution Message | Excel Discussion (Misc queries) | |||
Code Execution has been interrupted message | Excel Programming | |||
Message Box Execution | Excel Programming | |||
Stopping the Update Links Message | Excel Programming | |||
Stopping "Link Worksheets?" message box (using automation) | Excel Programming |