Change font color of late task

M

Mercedes

Is there a way to automatically (maybe a macro?) change the font color of
tasks that are not completed by due date?
 
G

Gérard Ducouret

Hello Mercedes

In the menu Format / Text Style, set a specific color for Marked Tasks
Then in the VBA Editor, paste the following macro:

Sub TacheRetard()
Dim oTache As Object
For Each oTache In ActiveProject.Tasks
If oTache.Status = 2 Then 'Retard
oTache.Marked = True
Else
oTache.Marked = False
End If
Next
End Sub

Gérard Ducouret
 
M

MSPLearner

Gérard,

Similarly, is there a way to set the font color based on a custom field
value; e.g Custom field has "Expense" or "Capital". Expense tasks = blue,
Capital tasks = Green?

MSPLearner
 
J

Jan De Messemaeker

Hi,

Not through formulas I'm afraid.
You can build a custoom filter and use "highlight filterd tasks" together
ith a coloring of the highlighted tasks, or you cna go through a VBA
procedure.
HTH
 

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