Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Screen Updating For Status Bar

I have a VBA routine that keeps the user updated on progress by changing the
status bar (Processing xxx Row of yyyy). When the user multi tasks and goes
to do something else and then comes back to Excel the status bar updating is
frozen. I have the Application.ScreenUpdating set to TRUE.

Any Ideas?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Screen Updating For Status Bar

As long as you pick up the value of XXXX in a variable as your code loops
then try

Application.StatusBar = xxxx



Mike

"DownThePaint" wrote:

I have a VBA routine that keeps the user updated on progress by changing the
status bar (Processing xxx Row of yyyy). When the user multi tasks and goes
to do something else and then comes back to Excel the status bar updating is
frozen. I have the Application.ScreenUpdating set to TRUE.

Any Ideas?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Screen Updating For Status Bar

Hi Mike;

I am doing that with the code now. As long as the user keeps the
application focus on Excel the updating works but if they say, go check email
and then come back when Excel regains focus the status bar does not update
even thought the routine is successfully running in the back ground.

Thanks,

"Mike H" wrote:

As long as you pick up the value of XXXX in a variable as your code loops
then try

Application.StatusBar = xxxx



Mike

"DownThePaint" wrote:

I have a VBA routine that keeps the user updated on progress by changing the
status bar (Processing xxx Row of yyyy). When the user multi tasks and goes
to do something else and then comes back to Excel the status bar updating is
frozen. I have the Application.ScreenUpdating set to TRUE.

Any Ideas?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,452
Default Screen Updating For Status Bar

Try this:

Application.StatusBar = xxxx
DoEvents


RBS


"DownThePaint" wrote in message
...
Hi Mike;

I am doing that with the code now. As long as the user keeps the
application focus on Excel the updating works but if they say, go check
email
and then come back when Excel regains focus the status bar does not update
even thought the routine is successfully running in the back ground.

Thanks,

"Mike H" wrote:

As long as you pick up the value of XXXX in a variable as your code loops
then try

Application.StatusBar = xxxx



Mike

"DownThePaint" wrote:

I have a VBA routine that keeps the user updated on progress by
changing the
status bar (Processing xxx Row of yyyy). When the user multi tasks and
goes
to do something else and then comes back to Excel the status bar
updating is
frozen. I have the Application.ScreenUpdating set to TRUE.

Any Ideas?


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Screen Updating For Status Bar

I can't recreate your problem. IOW the status bar will update no matter what
you do, or don't do, even if screenupdating is disabled.

Try the following 20 second loop, switch app's back & forth hiding revealing
windows etc.

Sub test()
Dim d As Date
Dim db As Date, Begin As Date, Current As Date
Const SEC As Date = 1 / 24 / 60 / 60

' Application.ScreenUpdating = False

Begin = Now

Do ' loop for 20 seconds updating the statusbar
Current = Now
If Application.StatusBar < CStr(Current) Then
Application.StatusBar = CStr(Current)
End If
Loop Until Current (Begin + 20 * SEC)


MsgBox "done"
Application.StatusBar = False
Application.ScreenUpdating = True

End Sub

Regards,
Peter T


"DownThePaint" wrote in message
...
Hi Mike;

I am doing that with the code now. As long as the user keeps the
application focus on Excel the updating works but if they say, go check

email
and then come back when Excel regains focus the status bar does not update
even thought the routine is successfully running in the back ground.

Thanks,

"Mike H" wrote:

As long as you pick up the value of XXXX in a variable as your code

loops
then try

Application.StatusBar = xxxx



Mike

"DownThePaint" wrote:

I have a VBA routine that keeps the user updated on progress by

changing the
status bar (Processing xxx Row of yyyy). When the user multi tasks

and goes
to do something else and then comes back to Excel the status bar

updating is
frozen. I have the Application.ScreenUpdating set to TRUE.

Any Ideas?



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
Status bar disappears when restoring screen size Ernie Excel Discussion (Misc queries) 0 November 24th 08 05:24 PM
Problem with Splash Screen user form with updating status [email protected] Excel Programming 2 April 18th 07 03:38 PM
status indicator on screen mark kubicki Excel Programming 3 April 14th 05 01:08 AM
Updating records by status based on a formula. Scott Whetsell, A.S. - WVSP Excel Programming 2 December 8th 04 01:07 AM
Full Screen With Status Cut Worksheet Tabs in Half Dean[_6_] Excel Programming 2 June 17th 04 12:06 PM


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