Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
i have a large data table 9000 lines. I have a userform
that runs some code from a button. At pre determined points in the code I change the caption of a label on the form to show status informatin, e.g. Label1.caption="Looking", = "Found", = "This may take a while"....the Problem I am seeing is that it doens seem to refresh the userform info until the sub routine on the button has completed. Hence I only ever see the very last status message, is this the way userforms work ? or is there a setting or command I can use to get it to update and refresh the captions on a label on the form ? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You need to sprinkle
DoEvents in the appropriate places so that the update will be visible. HTH Paul -------------------------------------------------------------------------------------------------------------- Be advised to back up your WorkBook before attempting to make changes. -------------------------------------------------------------------------------------------------------------- i have a large data table 9000 lines. I have a userform that runs some code from a button. At pre determined points in the code I change the caption of a label on the form to show status informatin, e.g. Label1.caption="Looking", = "Found", = "This may take a while"....the Problem I am seeing is that it doens seem to refresh the userform info until the sub routine on the button has completed. Hence I only ever see the very last status message, is this the way userforms work ? or is there a setting or command I can use to get it to update and refresh the captions on a label on the form ? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Are you using UserForm1.Refresh in your loop?
-- John johnf202 at hotmail dot com "Neil" wrote in message ... i have a large data table 9000 lines. I have a userform that runs some code from a button. At pre determined points in the code I change the caption of a label on the form to show status informatin, e.g. Label1.caption="Looking", = "Found", = "This may take a while"....the Problem I am seeing is that it doens seem to refresh the userform info until the sub routine on the button has completed. Hence I only ever see the very last status message, is this the way userforms work ? or is there a setting or command I can use to get it to update and refresh the captions on a label on the form ? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
CAE macro for green screen updates with Excel data | Excel Discussion (Misc queries) | |||
Screen Updates not working ? | Excel Programming | |||
Turning off all screen updates during a Solver routine | Excel Programming | |||
macros and screen updates | Excel Programming | |||
Userform Screen Location | Excel Programming |