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

Is there a simple way to pop up a message type box with a variable message
that would stay around for two seconds and then disappear? I would like to
not stop the main macro from running during the time the box is in view. I
have some very long procedures that I would like to show some simple
indication of progress.

Merry Christmas. Thanks in advance for your help!

Ray


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Status Message

Ray,

In Excel 2000 and later, you can use a userform to display the
message and keep code running while the form is displayed. For
example,

UserForm1.Show vbModelsss


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Ray Batig" wrote in message
link.net...
Is there a simple way to pop up a message type box with a

variable message
that would stay around for two seconds and then disappear? I

would like to
not stop the main macro from running during the time the box is

in view. I
have some very long procedures that I would like to show some

simple
indication of progress.

Merry Christmas. Thanks in advance for your help!

Ray




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default <Chip Pearson Status Message

Thanks Chip,

I built the following code to implement the concept. However, the userform
pops up as an outline with a visible title. I can't see the message. Any
ideas on how to fix? This is a very nice way to show where you are.

Regards,
Ray

Sub PopUpInfo(PuMsg)
' this pops up an information box for for 2 seconds
Dim StartTime As Long

UserForm1.ListBox1.Clear ' clear box and load data
With UserForm1.ListBox1
.AddItem (PuMsg)
End With
UserForm1.Show vbModeless
' hold userfrom for specified seconds
StartTime = Second(Now())

Do While Second(Now()) - StartTime < 3
Loop

Unload UserForm1
End Sub


Chip Pearson wrote in message
...
Ray,

In Excel 2000 and later, you can use a userform to display the
message and keep code running while the form is displayed. For
example,

UserForm1.Show vbModelsss


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Ray Batig" wrote in message
link.net...
Is there a simple way to pop up a message type box with a

variable message
that would stay around for two seconds and then disappear? I

would like to
not stop the main macro from running during the time the box is

in view. I
have some very long procedures that I would like to show some

simple
indication of progress.

Merry Christmas. Thanks in advance for your help!

Ray






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default <Chip Pearson Status Message

Ray,

Use a DoEvents and Repaint within your loop. E.g.,

UserForm1.Show vbModeless
Do Until Whatever
' your code
DoEvents
UserForm1.Repaint
Loop


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Ray Batig" wrote in message
link.net...
Thanks Chip,

I built the following code to implement the concept. However,

the userform
pops up as an outline with a visible title. I can't see the

message. Any
ideas on how to fix? This is a very nice way to show where you

are.

Regards,
Ray

Sub PopUpInfo(PuMsg)
' this pops up an information box for for 2 seconds
Dim StartTime As Long

UserForm1.ListBox1.Clear ' clear box and load data
With UserForm1.ListBox1
.AddItem (PuMsg)
End With
UserForm1.Show vbModeless
' hold userfrom for specified seconds
StartTime = Second(Now())

Do While Second(Now()) - StartTime < 3
Loop

Unload UserForm1
End Sub


Chip Pearson wrote in message
...
Ray,

In Excel 2000 and later, you can use a userform to display

the
message and keep code running while the form is displayed.

For
example,

UserForm1.Show vbModelsss


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Ray Batig" wrote in message
link.net...
Is there a simple way to pop up a message type box with a

variable message
that would stay around for two seconds and then disappear?

I
would like to
not stop the main macro from running during the time the

box is
in view. I
have some very long procedures that I would like to show

some
simple
indication of progress.

Merry Christmas. Thanks in advance for your help!

Ray








  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default <Chip Pearson Status Message

Chip,

Thanks. Works very well.

Merry Christmas!!

Ray
Chip Pearson wrote in message
...
Ray,

Use a DoEvents and Repaint within your loop. E.g.,

UserForm1.Show vbModeless
Do Until Whatever
' your code
DoEvents
UserForm1.Repaint
Loop


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Ray Batig" wrote in message
link.net...
Thanks Chip,

I built the following code to implement the concept. However,

the userform
pops up as an outline with a visible title. I can't see the

message. Any
ideas on how to fix? This is a very nice way to show where you

are.

Regards,
Ray

Sub PopUpInfo(PuMsg)
' this pops up an information box for for 2 seconds
Dim StartTime As Long

UserForm1.ListBox1.Clear ' clear box and load data
With UserForm1.ListBox1
.AddItem (PuMsg)
End With
UserForm1.Show vbModeless
' hold userfrom for specified seconds
StartTime = Second(Now())

Do While Second(Now()) - StartTime < 3
Loop

Unload UserForm1
End Sub


Chip Pearson wrote in message
...
Ray,

In Excel 2000 and later, you can use a userform to display

the
message and keep code running while the form is displayed.

For
example,

UserForm1.Show vbModelsss


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Ray Batig" wrote in message
link.net...
Is there a simple way to pop up a message type box with a
variable message
that would stay around for two seconds and then disappear?

I
would like to
not stop the main macro from running during the time the

box is
in view. I
have some very long procedures that I would like to show

some
simple
indication of progress.

Merry Christmas. Thanks in advance for your help!

Ray










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
Calculating: (1 Processor(s)): 25% MESSAGE ON STATUS BAR RM Excel Discussion (Misc queries) 2 February 9th 08 12:30 AM
Why do I have a permanent Calculate message in the Status Bar? Andre Excel Discussion (Misc queries) 14 September 13th 07 04:40 PM
Calculating Cells n% message in Status bar Marilyn Excel Discussion (Misc queries) 6 January 16th 07 04:11 PM
calculate message in status bar neda5 Excel Discussion (Misc queries) 3 April 11th 06 06:07 PM
'Calculate' message at the status bar Charles Williams Excel Programming 0 September 12th 03 07:37 PM


All times are GMT +1. The time now is 10:05 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"