Discrepancy between Critical task field and pjCritical enumeration

D

DraNoel

I'm using the statement "Application.TextStyles Item:=pjCritical,
Color:=pjRed" in a macro to set the font color of all Critical tasks in my
project to red. This statement is erroneously setting the font color to red
for some tasks where the value of the Critical task field is No, and fails to
set the font color to red for many tasks where the value of the Critical task
field is Yes. The problem occurs in both Project 2007 and Project 2003. Any
suggestions?
 
J

Jack Dahlgren

It works for me, BUT if you have any tasks which were manually formatted (by
selecting the row and formatting text) then it will not change formatting on
those tasks.

Once you have manually formatted the rows you need to select the row and use
application.editclearformat to reset them. This will clear the changes you
have made to an individual row including font, size, color etc.

I recommend manual formatting of tasks.

-Jack Dahlgren
 
D

DraNoel

Thanks for the suggestion. I'll give it a try.

Jack Dahlgren said:
It works for me, BUT if you have any tasks which were manually formatted (by
selecting the row and formatting text) then it will not change formatting on
those tasks.

Once you have manually formatted the rows you need to select the row and use
application.editclearformat to reset them. This will clear the changes you
have made to an individual row including font, size, color etc.

I recommend manual formatting of tasks.

-Jack Dahlgren
 
D

DraNoel

I tried your approach. There are still a few Critical = "Yes" tasks where
the font color did not change as expected, but overall it's much better than
before. Thank you for your assistance.
 
J

Jack Dahlgren

Glad it helped. I'd try playing around with some of the other text styles to
see if there is another one which is causing the behavior. A task may be
critical and also some other sort of classification. I'm not sure what
project does in that case (critical + highlight = ??)

-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