Can change a task's Font Color

J

Jett Anderson

My client wants to be able to mark some tasks
as 'deleted', (I'll use some unused property on the Task
object, rather than actually deleting them from the Tasks
collection) and then change the font color of these tasks
when the file is loaded into Project 2000.

Is there any way for me to programmatically change the
color of the font of specific tasks?
 
J

JackD

Yes, Set the "highlight" property of the task to true.
Then set the text style of highlighted tasks to the color you want.

For example this sets the highlighted tasks to be magenta

TextStyles Item:=7, Color:=6

Best to use the macro recorder to get the correct item and color.

-Jack
 
J

Jan De Messemaeker

Hi Jack and all,

Sorry but AFAIK Highlight or Highlighted are not task properties.
The highlighted condition exists when a filter is applied in a view that has
the "highlight filter" property

HTH
 
J

JackD

Ah...
My bad memory, you are correct.
Use "Marked" instead.

Example:
TextStyles Item:=6, Color:=9

-Jack
 

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