Screen Updates on a userform

N

Neil

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 ?
 
P

pfsardella

You need to sprinkle

DoEvents

in the appropriate places so that the update will be visible.

HTH
Paul
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top