Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 577
Default waiting message

I want to put a message on top of the form when the program is running, such
as "Please wait while the updating is in the progress.", and the message
will disappear or replaced by another message like "The update is completed."
How to do this?

Your help will be appreciated.

Scott
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 577
Default waiting message

Thank you for the codes. I have a problem. "DoEvents" in your code means my
own action codes, right? Run them for 10000 times?

Scott


"Michael" wrote:

You can also try adding a progress bar, but for this you need to do a little
more work. First you have to create a form and place a progressbar object in
it, then you use the following code:
Sub ProgressBar ()
Dim f As UserForm1
Dim i As Integer

Set f = New UserForm1
f.ProgressBar1.Min = 0
f.ProgressBar1.Max = 10000

f.Show vbModeless

For i = 1 To 10000
f.ProgressBar1.Value = f.ProgressBar1.Value + 1
DoEvents
Next

f.Hide

Set f = Nothing

End Sub

--
If this posting was helpful, please click on the Yes button.
Regards,

Michael Arch.




"Scott" wrote:

I want to put a message on top of the form when the program is running, such
as "Please wait while the updating is in the progress.", and the message
will disappear or replaced by another message like "The update is completed."
How to do this?

Your help will be appreciated.

Scott

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
"Waiting Message" Guinness Excel Discussion (Misc queries) 3 November 28th 07 02:35 AM
waiting message Michael Excel Programming 1 August 17th 07 02:02 AM
waiting message Michael Excel Programming 0 August 17th 07 01:53 AM
waiting message Michael Excel Programming 0 August 17th 07 01:46 AM


All times are GMT +1. The time now is 04:11 PM.

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"