![]() |
Screen Updates on a userform
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 ? |
Screen Updates on a userform
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 ? |
Screen Updates on a userform
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 ? |
All times are GMT +1. The time now is 12:12 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com