Have a look at some of the formatting in some of the built in Views for clues about how to set bar styles colours for Tasks that meet certain criteria. Some of the criteria can be combinations, eg "Summary,Critical". This one makes Summary bars which have zero Total Slack go whatever colour you like. Another good one is "Milestone, Critical", which can be used to make zero total slack Milestones go red. You have to get the syntax right with the comma etc.
If you use one of the custom fields such as Flag1 you could use a combination criteria such as "Normal, Flag1".
You could use this to make all normal tasks which also have Flag1 set to "Yes" take on whatever style you choose.
You could set Flag1 by data input or you could make it a calculated result with a formula.
when you make or contemplate serious formatting changes like this it is best to make it part of a new View rather than messing up the built in View.
Once you get the hang of using the spare custom fields you can also sort, filter and group on them, so they become really important.
My VBA is pretty hopeless but I find that so much can be achieved without it that I never need it.
Exhaust the possible simple solutions before over-reaching to the complicated ones.
I use the flags, a text field I call Acro, and a cust task sheet view. The Acro field (short for Acronym) contains a short word that describes the task (ie "Conduct Thermal Test" would be "Therm Test" in Acro). I use the flag fields to indicate the type of symbol and where I want the label (left, right, top, bottom). I create a cust task sheet view to show in lower pane that displays the task, acro, dates, and flag fields (renamed as appropriate). In Bar Styles I create bars and indicators that correspond to the flags. I can then select the task and then select the flag in the task entry pane and the bar or symbol will display as appropriate and put the label either left, right, up, or down as approriate.
If you want, I can send you a project file and then we can talk on the phone. Two minutes of phone talk is much better than a couple of pages of written explanation.
You probably could write a macro or some sort of VB code to do as you require, but I think that youre over-complicating things a bit (but Im not particularly versed in the art of VB writing anyway)
I get the impression that youll be using the "Group By..." function in order to get the groupings that you desire. Once you have done this, then the easiest way is just to apply a filter (an Autofilter will work perfectly well), in Text1, to extract "retail" or "supply chain" values. You then just highlight all the activities, click Format>Bar>Bar Shape, and then change the colour.
Spider Project is most functional and powerful professional project management software.
The first SP version was launched in 1993 and since then it has been constantly improved. Today is used in 34 countries though most Spider Project customers are in Russia. Spider Project offers numerous unique functional features and is the only PM software that optimizes resource, cost, and material constrained schedules and budgets for projects and portfolios.
The unique features of Spider Project include Quantity Based Scheduling, Conditional Scheduling, Skill Scheduling, Optimal Resource, Cost and Material Leveling, Resource Critical Path Calculation, Cash and Material Flows Calculation and Management, Trend Analysis, Advanced Risk Simulation and Analysis, Calculation of Success Probability Trends, Calculation and Management of required Project Time and Cost Buffers, Application of Corporate Norms, Management of many Parallel Budgets, Multiple WBS and many others.
Spider Project was and is used for management of many large scale programs in Russia, including $51bln construction program for 2014 Winter Olympic Games preparation.
The application areas where Spider Project is successfully used include Aerospace, Banking, Construction, Defense, Energy, Engineering, Infrastructure, Manufacturing, Metallurgy, Mining, Oil & Gas, Railways, Retail, Shipbuilding, Software Development, Telecommunications, Utilities, etc.
P6-Auditor - Display information from Primavera P6 audit tables in a user-friendly format
Unifier-Archiver - Extract and archive important documents and attachments from Primavera Unifier
Unifier-Loader - Load data into and out of Unifier via Excel
PCM-Loader - Import data into Primavera Contract Management with flexible and secure, template-driven Excel spreadsheets
PCM-Archiver - Extract and archive important documents and attachments from Primavera Contract Management
PCM-Unifier Migrator - Automatically transfer live and historical data from Primavera Contract Management to Primavera Unifier with ease
Create Radically Better Construction Schedules with ALICE Technologies
Use the power of AI to create construction schedules that reduce risk while cutting costs and build time. With ALICE, develop the ideal schedule during preconstruction -- or recover projects that are off schedule and over budget.
James,
Have a look at some of the formatting in some of the built in Views for clues about how to set bar styles colours for Tasks that meet certain criteria. Some of the criteria can be combinations, eg "Summary,Critical". This one makes Summary bars which have zero Total Slack go whatever colour you like. Another good one is "Milestone, Critical", which can be used to make zero total slack Milestones go red. You have to get the syntax right with the comma etc.
If you use one of the custom fields such as Flag1 you could use a combination criteria such as "Normal, Flag1".
You could use this to make all normal tasks which also have Flag1 set to "Yes" take on whatever style you choose.
You could set Flag1 by data input or you could make it a calculated result with a formula.
when you make or contemplate serious formatting changes like this it is best to make it part of a new View rather than messing up the built in View.
Once you get the hang of using the spare custom fields you can also sort, filter and group on them, so they become really important.
My VBA is pretty hopeless but I find that so much can be achieved without it that I never need it.
Exhaust the possible simple solutions before over-reaching to the complicated ones.
I use the flags, a text field I call Acro, and a cust task sheet view. The Acro field (short for Acronym) contains a short word that describes the task (ie "Conduct Thermal Test" would be "Therm Test" in Acro). I use the flag fields to indicate the type of symbol and where I want the label (left, right, top, bottom). I create a cust task sheet view to show in lower pane that displays the task, acro, dates, and flag fields (renamed as appropriate). In Bar Styles I create bars and indicators that correspond to the flags. I can then select the task and then select the flag in the task entry pane and the bar or symbol will display as appropriate and put the label either left, right, up, or down as approriate.
If you want, I can send you a project file and then we can talk on the phone. Two minutes of phone talk is much better than a couple of pages of written explanation.
Regards,
Glen
James(s),
Add a text column in the Gantt Chart table and enter the "group" name for each task, as James describes
Go to Tools, Customize, Fields, and create a formula that says "if group = supply then indactor1 = yes" and so on for the other goup names
Go to Format, Bar Styles, and create new bars that represent "norma, critical, indicator1" and so on
This way, as soon as you select a particular group name for a task, the bar color will change accordingly.
Good work,
Alexandre
Thank you all for your help, I think Im more or less there now. Fingers crossed!
Thanks for the help, does exactly what I need!
Hi James,
You probably could write a macro or some sort of VB code to do as you require, but I think that youre over-complicating things a bit (but Im not particularly versed in the art of VB writing anyway)
I get the impression that youll be using the "Group By..." function in order to get the groupings that you desire. Once you have done this, then the easiest way is just to apply a filter (an Autofilter will work perfectly well), in Text1, to extract "retail" or "supply chain" values. You then just highlight all the activities, click Format>Bar>Bar Shape, and then change the colour.
HTH.
James.