Controlling the Progress Bar in Project

E

Evan S. Dictor

I would like to make use of the progress bar that sometimes appears in Microsoft Project through the object model (from VB in my case). Does anyone know of a way to do so?

Evan
 
M

Mark Durrenberger

Create a form and put a progress bar on it (call it ProgressBar1)

In the long loop you are showing progress put code like this

for lngTrial = 1 to NumberOfTrials

' increment and update progress bar
'
lngProgress = lngTrial * 100 / NumberOfTrials ' this makes a "%
complete"
frmProgressBar.ProgressBar1.Value = lngProgress ' update the progress
bar

next lngTrial

Good Luck,
Mark

--
_________________________________________________________
Mark Durrenberger, PMP
Principal, Oak Associates, Inc, www.oakinc.com
"Advancing the Theory and Practice of Project Management"
________________________________________________________

The nicest thing about NOT planning is
that failure comes as a complete surprise and is not
preceded by a period of worry and depression.

- Sir John Harvey-Jones
Evan S. Dictor said:
I would like to make use of the progress bar that sometimes appears in
Microsoft Project through the object model (from VB in my case). Does anyone
know of a way to do so?
 
E

Evan S. Dictor

I probably didn't word that correctly :

I'm trying to control the actual Microsoft Project progress bar that sometimes appears on the status bar at the bottom of the application. I'm trying to avoid popping up a new form

Evan
 
M

Mark Durrenberger

Oh - I see :) I may be able to help but I'd like to know more. Why do you
wish to prevent the progress bar from showing?

--
_________________________________________________________
Mark Durrenberger, PMP
Principal, Oak Associates, Inc, www.oakinc.com
"Advancing the Theory and Practice of Project Management"
________________________________________________________

The nicest thing about NOT planning is
that failure comes as a complete surprise and is not
preceded by a period of worry and depression.

- Sir John Harvey-Jones
Evan S. Dictor said:
I probably didn't word that correctly :(

I'm trying to control the actual Microsoft Project progress bar that
sometimes appears on the status bar at the bottom of the application. I'm
trying to avoid popping up a new form.
 
E

Evan S. Dictor

I don't want to stop it from appearing, I want to cause it to appear on my own. I just don't want to add a form with a progress bar when there's a perfectly good one in Project already ;-

Evan
 

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