Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default message box while macro is running

is it possible to have message box pop up when an
auto_open marco calls another macro? Basically, i will
like it to tell the user that the application is running.
and disappears once the marco stops.

example of steps.
1.user click on application
2.application auto_open and run marco
3.message box appear with message "marco is in process"
option for user to click OK(the macro in process is based
on the processing time of the marco that is called by
sub auto_open())
4.second message box "marco has completed" option for
user to click OK (the macro in completed is based on the
completion time of the marco that is called by sub
auto_open())

I have completed step one and two. i need help with the
message box, step 3 and 4
please let me know if i have to create a form
Thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default message box while macro is running

Hi wendy,

The macro will not start until [OK] button is clicked in the message
box.
So I think using an userform is better in your case.
Please have a look @ attached sample file.

Attachment filename: book1.xls
Download attachment: http://www.excelforum.com/attachment.php?postid=401942
---
Message posted from http://www.ExcelForum.com/

  #3   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default message box while macro is running

SO it is not possible to auto run the macro and receive a
prompt saying the marco is running?
-----Original Message-----
Hi wendy,

The macro will not start until [OK] button is clicked in

the message
box.
So I think using an userform is better in your case.
Please have a look @ attached sample file.

Attachment filename:

book1.xls
Download attachment:

http://www.excelforum.com/attachment.php?postid=401942
---
Message posted from http://www.ExcelForum.com/

.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default message box while macro is running

Sorry, as far as I know, there is no way using a message box while th
macro is running.
So I showed a sample with using an Userform.

Please wait reply from others

--
Message posted from http://www.ExcelForum.com

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default message box while macro is running

Wendy,

Don 't know how you can get it to be even t drfiven, but I do know how to
display a MsgBox that will automatically time out after n seconds. This is
that code

Dim nRes As Long
Dim oWSH As Object

Set oWSH = CreateObject("WScript.Shell")
nRes = oWSH.Popup(Text:="Click a button, or just wait ", _
SecondsToWait:=2, _
title:="Automatic MsgBox Timeout", _
Type:=vbYesNoCancel)


The msgbox will timeout after 2 seconds. If the user clicks a button on the
box, it returns vbYes or vbNo, whereas if the msgbox times out, it
returns -1.

I suppose you could set the time to some inordinate length and use SendKeys
to force a Yes or No, but it is getting a bit messy.

I person ally would use a Userform.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"wendy" wrote in message
...
is it possible to have message box pop up when an
auto_open marco calls another macro? Basically, i will
like it to tell the user that the application is running.
and disappears once the marco stops.

example of steps.
1.user click on application
2.application auto_open and run marco
3.message box appear with message "marco is in process"
option for user to click OK(the macro in process is based
on the processing time of the marco that is called by
sub auto_open())
4.second message box "marco has completed" option for
user to click OK (the macro in completed is based on the
completion time of the marco that is called by sub
auto_open())

I have completed step one and two. i need help with the
message box, step 3 and 4
please let me know if i have to create a form
Thanks in advance





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default message box while macro is running

Here is John Walkenbach's page on creating a Splash Screen:
http://j-walk.com/ss/excel/tips/tip39.htm

It uses a userform such as Colo suggests (didn't look at his file, so don't
know if the approaches are identical).

A msgbox is modal - so all activity halts until you respond to it. You
could put this up and say, click the button to continue, but the code is
halted until the user hits the button.

Jim Rech put up some code that calls a timed msgbox using one of the windows
scripting languages, but many people posted back that it didn't close for
them.

http://groups.google.com/groups?thre...%40tkmsftngp08

Sub SelfClosingMsgBox()
Dim wsh As Object
Set wsh = CreateObject("WScript.Shell")
wsh.Popup "Hello!", 2, "This closes itself in 2 seconds"
End Sub


--
Regards,
Tom Ogilvy

wrote in message
...
SO it is not possible to auto run the macro and receive a
prompt saying the marco is running?
-----Original Message-----
Hi wendy,

The macro will not start until [OK] button is clicked in

the message
box.
So I think using an userform is better in your case.
Please have a look @ attached sample file.

Attachment filename:

book1.xls
Download attachment:

http://www.excelforum.com/attachment.php?postid=401942
---
Message posted from http://www.ExcelForum.com/

.



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default THANKS A MILLION COLO:message box while macro is running

Thanks Everyone. Colo has solved my problem since the
first posting, it was my fault. Since i have to marco
with one calling the the other, i need to add the
beginning statement on both. Thank you very very much COLO
-----Original Message-----
is it possible to have message box pop up when an
auto_open marco calls another macro? Basically, i will
like it to tell the user that the application is

running.
and disappears once the marco stops.

example of steps.
1.user click on application
2.application auto_open and run marco
3.message box appear with message "marco is in process"
option for user to click OK(the macro in process is

based
on the processing time of the marco that is called by
sub auto_open())
4.second message box "marco has completed" option for
user to click OK (the macro in completed is based on the
completion time of the marco that is called by sub
auto_open())

I have completed step one and two. i need help with the
message box, step 3 and 4
please let me know if i have to create a form
Thanks in advance
.

  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default THANKS A MILLION COLO:message box while macro is running

Hi wendy, glad I could help you.
You are welcome.

:D


---
Message posted from http://www.ExcelForum.com/

  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default message box while macro is running

Wendy,

I don't know how to make messages stay on the screen while
a macro processes. But sometimes if I have a macro that
may take a while to process, I put a msgbox at the
beginning that says something like "Application is running
and will take about 3 minutes to finish. Click ok to
continue."

Good luck,
JenReyn

-----Original Message-----
is it possible to have message box pop up when an
auto_open marco calls another macro? Basically, i will
like it to tell the user that the application is running.
and disappears once the marco stops.

example of steps.
1.user click on application
2.application auto_open and run marco
3.message box appear with message "marco is in process"
option for user to click OK(the macro in process is based
on the processing time of the marco that is called by
sub auto_open())
4.second message box "marco has completed" option for
user to click OK (the macro in completed is based on the
completion time of the marco that is called by sub
auto_open())

I have completed step one and two. i need help with the
message box, step 3 and 4
please let me know if i have to create a form
Thanks in advance
.

  #10   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default message box while macro is running

Wendy:
I have a little macro that will display a userform for a set time. Th
userform name is "Patience" and it has text as well as a picture.

It works well EXCEPT the timer won't start with the MODAL=True, whic
you need to bring up the picture with the userform. With MODAL=False
timer starts and it runs perfectly. To get the timer to start wit
MODAL=True, you need to click label1 on the Userform. Notice I have
clock/timer that displays in "B7".

Someone can surely tell us how to start the timer with MODAL=True.

Simple code:

*****
Sub Time_Macro()

Patience.Show
S = Second(Time()) + 10
While Second(Time()) < S
Range("B7").Value = Time()
Wend
Patience.Hide

End Sub

Sub Show()
Patience.Show
End Sub

Sub ShowEnd()
'The following screen updating may not be needed. It works eithe
way.
Application.ScreenUpdating = True
Patience.Hide
End Sub


And, once in a while it won't end, but I think it is the "Wend" tha
needs to be changed

--
Message posted from http://www.ExcelForum.com

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Message box with multiple options running different macros Martin Excel Discussion (Misc queries) 3 July 23rd 07 12:19 PM
Event Macro running another macro inside K1KKKA Excel Discussion (Misc queries) 1 December 20th 06 08:21 PM
disable user running macro from Tools Macro Steve Simons Excel Discussion (Misc queries) 4 September 28th 06 06:28 AM
Message Window to tell user "Macro Running" keyt Excel Programming 2 October 4th 03 05:28 PM
Launch Macro in Access via Macro running in Excel??? dgrant Excel Programming 1 September 24th 03 01:38 PM


All times are GMT +1. The time now is 10:42 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"