Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default Screen Updates not working ?

Hi all, I have a sheet with a 9000 row data table. I have
created a useform that will enable people do manipulate
the data table. I have some labels on textboxes plus a
button on the form. When the button is pressed I run some
code assigned to the button that runs right down the 9000
rows, I have written the code so that at certain points
it changes the text in some of the textboxes as a kind of
progress indication, and one of the labels changes
from "looking" to "found" etc, but the problem I am
seeing is that it doesnt update all the texboxes and
labels until after the code has completed. So the
textboxes only ever show the last change in the code.
I dont have screenupdating turned off and the code is
quite simple. Is it just a case that when executing code
assigned to a button on a form, that the form doesnt
update until the code execution has completed ?

If this is the case does anyone know a work around ?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Screen Updates not working ?

After each update, put in the command
DoEvents

--
Regards,
Tom Ogilvy

"Neil" wrote in message
...
Hi all, I have a sheet with a 9000 row data table. I have
created a useform that will enable people do manipulate
the data table. I have some labels on textboxes plus a
button on the form. When the button is pressed I run some
code assigned to the button that runs right down the 9000
rows, I have written the code so that at certain points
it changes the text in some of the textboxes as a kind of
progress indication, and one of the labels changes
from "looking" to "found" etc, but the problem I am
seeing is that it doesnt update all the texboxes and
labels until after the code has completed. So the
textboxes only ever show the last change in the code.
I dont have screenupdating turned off and the code is
quite simple. Is it just a case that when executing code
assigned to a button on a form, that the form doesnt
update until the code execution has completed ?

If this is the case does anyone know a work around ?




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
FLICKERING SCREEN WHEN WORKING Henning Excel Discussion (Misc queries) 0 April 3rd 07 03:08 PM
CAE macro for green screen updates with Excel data Sriram Excel Discussion (Misc queries) 1 July 16th 06 04:19 PM
msn stock updates quit working & no internet connection in excel K9CE Excel Discussion (Misc queries) 0 July 13th 06 04:36 PM
Turning off all screen updates during a Solver routine Tony Scullion Excel Programming 3 August 15th 03 08:09 PM
macros and screen updates Tim Laud Excel Programming 5 August 4th 03 01:54 PM


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