?
Solved

Changing font for task that are 100% complete Automatically

Posted on 2011-09-13
5
Medium Priority
?
2,615 Views
Last Modified: 2012-05-12
I would like to setup something in MS project that would automatically change font to gray color when i complete task to 100%. also if i would like to switch it back to normal if somereason it is changed back from 100% to anything less then that... is that possible?
0
Comment
Question by:dharmesh_a
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 15

Accepted Solution

by:
lyonst earned 2000 total points
ID: 37095256
Just insert and run this Macro

Sub Test()
Dim tsk As Task
For Each tsk In ActiveProject.Tasks
    If Not tsk Is Nothing Then
        If tsk.PercentComplete = 100 Then
            SelectTaskField Row:=tsk.ID, _
                      RowRelative:=False, Column:="Name"
            'Font Bold:=True, Color:=pjRed
            Font32Ex CellColor:=&HF0D9C6
        End If
        If tsk.PercentComplete <> 100 Then
            SelectTaskField Row:=tsk.ID, _
                      RowRelative:=False, Column:="Name"
            'Font Bold:=True, Color:=pjRed
            Font32Ex CellColor:=&HFFFFFF
        End If
    End If
Next
End Sub

You can Set up a Shortcut to Run it..
0
 
LVL 15

Expert Comment

by:lyonst
ID: 37095354
Can also use

Font Bold:=True, Color:=pjGray

Instead of Font32Ex CellColor:=&HF0D9C6

Or Red as on the example that is commented out
0
 
LVL 18

Expert Comment

by:xtermie
ID: 37103454
You can then use the macro either as a BUTTON on a custom toolbar which you can run anytime you want, or set it on the OnOpen or OnClose or OnUpdate or OnSave events of the file, so that the formatting is down automatically...the sub may need some tweaking though...can you post a small sample of a project?
0
 
LVL 29

Expert Comment

by:leonstryker
ID: 37242390
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Read about why it is more lucrative for an IT company to participate in government projects.
Successful collaboration among team members is essential for the growth of your business. When employees work together on projects, share ideas and communicate effectively they get better results.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Introduction to Processes

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question