Task bar presentation

V

vincent

I have receive paper document that presente task bar with different shading
to represent different step in the task (or it can also be understood has
sequencial subtask presented on the main task)

can that be done with Project
 
J

JulieD

Hi Vincent

not really sure what you're asking - but yes, you can format bars within a
gantt chart differently - if you want to format a type of bar e.g. all
milestones, then choose format / bar style - choose the type you want and
set the format. If you just want to format one bar at a time, select the
task and choose format / bar.

in addition, code / macro / VBA (whatever you want to call it) could be used
to format bars a particular way based on the value of another field (i.e.
you have a number field - and if the number field has a 7 in it you want the
bar to turn lime green)

Cheers
JulieD
 
V

vincent

I mean to have a single bar for a task but that bar has 4 parts for example
one is light gray the second is green, the third...

like : nnnnnnuuuuuuuuxxxxxxzzzzzzzzzz
 
J

JulieD

Hi Vincent

sorry about the delay in getting back to you. AFAIK the only way you can
acomplish what you've asked for is to "split" the task up into four
different stages - along the lines of a reply given by "John" (sorry not
sure of the last name)
----copy of reply
Yes it is possible to do what you want. The simplest case is with a single
split although multiple splits can be accommodated. For a

single split, a couple of spare date fields (e.g. Finish1 & Start1) need to
be populated with the Finish date of the first portion and the

Start date of the second portion. Then set up separate bar styles
(Format/Barstyles) for each portion. Use a thick blue bar from Start

to Finish1 and a pink (?) bar from Start1 to Finish.

If there are multiple splits in the bars, additional spare date fields will
need to be established as well as additional bar styles for each

portion.

The only way I know to populate the spare fields with the correct date
information for split tasks is via a VBA macro. The following code

should get you what you need.

Sub SetSplits()

For Each t In ActiveProject.Tasks

If Not t Is Nothing Then

If t.SplitParts.Count > 1 Then

t.Finish1 = t.SplitParts(1).Finish

t.Start1 = t.SplitParts(2).Start

End If

End If

Next t

End Sub

----

Hope this helps

Cheers

JulieD
 

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