LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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



 
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 12:00 AM.

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

About Us

"It's about Microsoft Excel"