Skip to content

Automatic bar colours

Stuart AtkinsonMember for 22 years 9 months
Created
4
5
0
Is there a way on Project Standard 2002 to link the text to
the colour of the bar. That is, where ever I add say’Design’,the bar automatically has the colour of green on the Bar Chart and on the legend.

Tried playing-still desparate.

4 replies

Oldest first
  1. 0
    Paul Harris ·
    I am fairly certain it is not an inbuilt function but you could try writing a macro to format both at the same time.

    Paul E Harris
    Eastwood Harris Pty Ltd, Melbourne, Australia
    Planning and Scheduling Book Publishers, Training & Consulting
    www.eh.com.au
  2. 0
    Forum Guest ·
    Paul is right, you cannot link colors of bars and text; the only way would be a macro
    Alexandre
  3. 0
    Forum Guest ·
    Thanks Gents,

    Any assistance would be very much appreciated
  4. 0
    John Loach ·
    You can do this by using a flag field (say flag1), with a formula assigned.

    The formula needs to identify your keyword within the name field using an iif() funtion, so if it is in a fixed position, thats more helpful.

    Then in the Bar Styles dialog, create your alternative bar style, and add ’normal, flag1’. Also add ’Not Flag1’ to the default bar / task bar.

    Flag1 will then change to Yes if the word is detected or no if not and the bar style will be determined by the formula automatically.

    What I tend to do rather than detect a keyword is to have a text field with an assigned value list. I just choose the value, in your case ’design’, and the bar changes to suit.

    This allows you to use the text field as a code and extend the functionality of the built-in grouping functions also.

    HTH,
    Jon.

Log in or join to reply

ProjectControls.com is free to join. Members can post questions, reply, vote and follow discussions.

Existing members: your original username and password still work. Forgot password?