Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Statusbar messages stop updating

I have a macro that imports 3 different sheets of data with
40,000-50,000 rows each, updates 30 accounts through array formulas,
then converts the result to text for better performance and to make the
end sheet usable. The process takes about half an hour for a month's
worth of data, which is ok. I am, however, facing a strange problem as
follows:

I am using the Application.StatusBar command to generate messages that
tell me how far along the macro has gone; something like "Updating acct
1 of 30, day 11/19/2005" in the routine. The problem is that it works
for a while, but then invariably excel goes into some sort of "trance"
where it stops updating the message. The 'task manager', in fact, will
list excel as "Not responding"... however, if I wait it out Excel will
invariably finish updating and "come back to life". Still, I do not
like the uncertainty of waiting for 10-20 minutes not knowing whats
going on or how far along the updating process it has gone, and I don't
like interrupting the macro execution to find out (sometimes even that
takes ages to kick in).

I am guessing that the application.statusbar messages are interrupted
when other events happen outside the Excel environment (an email
notification, an instant message, opening or closing folders or other
application while it is running). I have tried shutting down anything
that might cause this but still run into the problem of the statusbar
not displaying messages after a while.

Any ideas as to how to "force" excel to keep updating the statusbar
messages? Note that I AM using Application.ScreenUpdating = False and
Application.DisplayAlerts = False in order to speed up execution --
could this have anything to do with whats happening?


I appreciate any ideas on this... thanks!

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default Statusbar messages stop updating

If ScreenUpdataing is false then Excel will not redraw, so that will keep the
statusbar from updating, as far as I know. You might want to try some other
way to show status, such as a userform with either a message or a progressbar
on it.

Also, if you haven't done it, put a DoEvents statement inside any of the
larger loops you have in the code. This will help avoid the total freezeup
as your code processes.
--
- K Dales


" wrote:

I have a macro that imports 3 different sheets of data with
40,000-50,000 rows each, updates 30 accounts through array formulas,
then converts the result to text for better performance and to make the
end sheet usable. The process takes about half an hour for a month's
worth of data, which is ok. I am, however, facing a strange problem as
follows:

I am using the Application.StatusBar command to generate messages that
tell me how far along the macro has gone; something like "Updating acct
1 of 30, day 11/19/2005" in the routine. The problem is that it works
for a while, but then invariably excel goes into some sort of "trance"
where it stops updating the message. The 'task manager', in fact, will
list excel as "Not responding"... however, if I wait it out Excel will
invariably finish updating and "come back to life". Still, I do not
like the uncertainty of waiting for 10-20 minutes not knowing whats
going on or how far along the updating process it has gone, and I don't
like interrupting the macro execution to find out (sometimes even that
takes ages to kick in).

I am guessing that the application.statusbar messages are interrupted
when other events happen outside the Excel environment (an email
notification, an instant message, opening or closing folders or other
application while it is running). I have tried shutting down anything
that might cause this but still run into the problem of the statusbar
not displaying messages after a while.

Any ideas as to how to "force" excel to keep updating the statusbar
messages? Note that I AM using Application.ScreenUpdating = False and
Application.DisplayAlerts = False in order to speed up execution --
could this have anything to do with whats happening?


I appreciate any ideas on this... thanks!


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Statusbar messages stop updating

I'd try the doEvents, but I think screenupdating won't stop the statusbar from
changing.



K Dales wrote:

If ScreenUpdataing is false then Excel will not redraw, so that will keep the
statusbar from updating, as far as I know. You might want to try some other
way to show status, such as a userform with either a message or a progressbar
on it.

Also, if you haven't done it, put a DoEvents statement inside any of the
larger loops you have in the code. This will help avoid the total freezeup
as your code processes.
--
- K Dales

" wrote:

I have a macro that imports 3 different sheets of data with
40,000-50,000 rows each, updates 30 accounts through array formulas,
then converts the result to text for better performance and to make the
end sheet usable. The process takes about half an hour for a month's
worth of data, which is ok. I am, however, facing a strange problem as
follows:

I am using the Application.StatusBar command to generate messages that
tell me how far along the macro has gone; something like "Updating acct
1 of 30, day 11/19/2005" in the routine. The problem is that it works
for a while, but then invariably excel goes into some sort of "trance"
where it stops updating the message. The 'task manager', in fact, will
list excel as "Not responding"... however, if I wait it out Excel will
invariably finish updating and "come back to life". Still, I do not
like the uncertainty of waiting for 10-20 minutes not knowing whats
going on or how far along the updating process it has gone, and I don't
like interrupting the macro execution to find out (sometimes even that
takes ages to kick in).

I am guessing that the application.statusbar messages are interrupted
when other events happen outside the Excel environment (an email
notification, an instant message, opening or closing folders or other
application while it is running). I have tried shutting down anything
that might cause this but still run into the problem of the statusbar
not displaying messages after a while.

Any ideas as to how to "force" excel to keep updating the statusbar
messages? Note that I AM using Application.ScreenUpdating = False and
Application.DisplayAlerts = False in order to speed up execution --
could this have anything to do with whats happening?


I appreciate any ideas on this... thanks!



--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 441
Default Statusbar messages stop updating

For what it is worth, I have this same issue. It seems to occur mostly on
large processes (those that take more than a few minutes).

This is a new issue in Office 2003, since I have code developed in earlier
versions and this never happened until the '03 upgrade. I have not yet been
able to recover this functionality, but I will try the "ScreenUpdating" angle
next time.


" wrote:

I have a macro that imports 3 different sheets of data with
40,000-50,000 rows each, updates 30 accounts through array formulas,
then converts the result to text for better performance and to make the
end sheet usable. The process takes about half an hour for a month's
worth of data, which is ok. I am, however, facing a strange problem as
follows:

I am using the Application.StatusBar command to generate messages that
tell me how far along the macro has gone; something like "Updating acct
1 of 30, day 11/19/2005" in the routine. The problem is that it works
for a while, but then invariably excel goes into some sort of "trance"
where it stops updating the message. The 'task manager', in fact, will
list excel as "Not responding"... however, if I wait it out Excel will
invariably finish updating and "come back to life". Still, I do not
like the uncertainty of waiting for 10-20 minutes not knowing whats
going on or how far along the updating process it has gone, and I don't
like interrupting the macro execution to find out (sometimes even that
takes ages to kick in).

I am guessing that the application.statusbar messages are interrupted
when other events happen outside the Excel environment (an email
notification, an instant message, opening or closing folders or other
application while it is running). I have tried shutting down anything
that might cause this but still run into the problem of the statusbar
not displaying messages after a while.

Any ideas as to how to "force" excel to keep updating the statusbar
messages? Note that I AM using Application.ScreenUpdating = False and
Application.DisplayAlerts = False in order to speed up execution --
could this have anything to do with whats happening?


I appreciate any ideas on this... thanks!


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Statusbar messages stop updating

Wow! Inserting a single Doevents command before application.statusbar
SOLVED it like magic. Thank you all so much!


quartz wrote:
For what it is worth, I have this same issue. It seems to occur mostly on
large processes (those that take more than a few minutes).

This is a new issue in Office 2003, since I have code developed in earlier
versions and this never happened until the '03 upgrade. I have not yet been
able to recover this functionality, but I will try the "ScreenUpdating" angle
next time.


" wrote:

I have a macro that imports 3 different sheets of data with
40,000-50,000 rows each, updates 30 accounts through array formulas,
then converts the result to text for better performance and to make the
end sheet usable. The process takes about half an hour for a month's
worth of data, which is ok. I am, however, facing a strange problem as
follows:

I am using the Application.StatusBar command to generate messages that
tell me how far along the macro has gone; something like "Updating acct
1 of 30, day 11/19/2005" in the routine. The problem is that it works
for a while, but then invariably excel goes into some sort of "trance"
where it stops updating the message. The 'task manager', in fact, will
list excel as "Not responding"... however, if I wait it out Excel will
invariably finish updating and "come back to life". Still, I do not
like the uncertainty of waiting for 10-20 minutes not knowing whats
going on or how far along the updating process it has gone, and I don't
like interrupting the macro execution to find out (sometimes even that
takes ages to kick in).

I am guessing that the application.statusbar messages are interrupted
when other events happen outside the Excel environment (an email
notification, an instant message, opening or closing folders or other
application while it is running). I have tried shutting down anything
that might cause this but still run into the problem of the statusbar
not displaying messages after a while.

Any ideas as to how to "force" excel to keep updating the statusbar
messages? Note that I AM using Application.ScreenUpdating = False and
Application.DisplayAlerts = False in order to speed up execution --
could this have anything to do with whats happening?


I appreciate any ideas on this... thanks!





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
updating a list of messages Schofield Excel Discussion (Misc queries) 0 October 26th 09 06:41 PM
How do I stop my formulas from updating? Shaun Excel Discussion (Misc queries) 2 May 7th 09 07:37 PM
Help! How do I stop link updating? Dennis Benjamin Excel Discussion (Misc queries) 3 January 11th 08 02:13 PM
Setting to stop error messages from showing? JENNYC Excel Discussion (Misc queries) 5 February 24th 06 10:05 PM
Statusbar not updating when autosaving Claus[_3_] Excel Programming 2 November 17th 05 10:01 AM


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