ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Show progress in a user form while code runs (https://www.excelbanter.com/excel-programming/295144-show-progress-user-form-while-code-runs.html)

Bura Tino

Show progress in a user form while code runs
 
Hi,

I have a proc which takes about 15 sec to run and I want to keep the
user updated with what's going on. So I show a modeless form and the
code keeps executing.


However, while that is taking place the form appears to be dead. I
want to change to contents of a label on the form:

"Now doing A",
"Now doing B",
"Now doing C", etc,

but that seems impossible. The form remains "whited-out".

Any suggetions?

Thanks!

Bura

Chris

Show progress in a user form while code runs
 
did you try DoEvents

Robin Hammond[_2_]

Show progress in a user form while code runs
 
Bura,

Stick a DoEvents statement after the line that updates the caption on the
form.

Robin Hammond
www.enhanceddatasystems.com

"Bura Tino" wrote in message
om...
Hi,

I have a proc which takes about 15 sec to run and I want to keep the
user updated with what's going on. So I show a modeless form and the
code keeps executing.


However, while that is taking place the form appears to be dead. I
want to change to contents of a label on the form:

"Now doing A",
"Now doing B",
"Now doing C", etc,

but that seems impossible. The form remains "whited-out".

Any suggetions?

Thanks!

Bura





All times are GMT +1. The time now is 05:34 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com