how to make process bar??

J

Joy

hi, could someone tell me how to show process bar in vba for ms project?

thank you very much
 
J

John

Joy said:
hi, could someone tell me how to show process bar in vba for ms project?

thank you very much

Joy,
Do you perhaps mean "progress" instead of "process"? If you do in fact
mean "process" what exactly is your definition?

If you are looking for a way to show a user the progress of a VBA macro,
there are various ways to do it. There is a progress or status bar that
can be displayed in a userform but when I tried it a few years back, it
was too slow and had too much processing overhead. Perhaps I just didn't
implement it properly.

The approach I use is to show progress in the window caption. The
general syntax is:
Application. ActiveWIndow.Caption = ["your progess message here"]

For longer running processes, I include a calculation that displays a
percentage. For example, if the code has a loop that cycles through all
tasks, I calculate and display a percentage based on how many tasks have
been processed. That way the user not only knows the macro is running
but also has an idea on how it is progressing.

Hope this helps.
John
Project MVP
 
J

Joy

many thanks

John said:
Joy said:
hi, could someone tell me how to show process bar in vba for ms project?

thank you very much

Joy,
Do you perhaps mean "progress" instead of "process"? If you do in fact
mean "process" what exactly is your definition?

If you are looking for a way to show a user the progress of a VBA macro,
there are various ways to do it. There is a progress or status bar that
can be displayed in a userform but when I tried it a few years back, it
was too slow and had too much processing overhead. Perhaps I just didn't
implement it properly.

The approach I use is to show progress in the window caption. The
general syntax is:
Application. ActiveWIndow.Caption = ["your progess message here"]

For longer running processes, I include a calculation that displays a
percentage. For example, if the code has a loop that cycles through all
tasks, I calculate and display a percentage based on how many tasks have
been processed. That way the user not only knows the macro is running
but also has an idea on how it is progressing.

Hope this helps.
John
Project MVP
 
J

John

Joy said:
many thanks
Joy,
You're welcome.
John
John said:
Joy said:
hi, could someone tell me how to show process bar in vba for ms project?

thank you very much

Joy,
Do you perhaps mean "progress" instead of "process"? If you do in fact
mean "process" what exactly is your definition?

If you are looking for a way to show a user the progress of a VBA macro,
there are various ways to do it. There is a progress or status bar that
can be displayed in a userform but when I tried it a few years back, it
was too slow and had too much processing overhead. Perhaps I just didn't
implement it properly.

The approach I use is to show progress in the window caption. The
general syntax is:
Application. ActiveWIndow.Caption = ["your progess message here"]

For longer running processes, I include a calculation that displays a
percentage. For example, if the code has a loop that cycles through all
tasks, I calculate and display a percentage based on how many tasks have
been processed. That way the user not only knows the macro is running
but also has an idea on how it is progressing.

Hope this helps.
John
Project MVP
 

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