Solved

Changing font for task that are 100% complete Automatically

Posted on 2011-09-13
5
2,283 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
  • 2
5 Comments
 
LVL 15

Accepted Solution

by:
lyonst earned 500 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 17

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Recurring Hourly task showing as 1 day in  Resource Usage 4 216
Scrum and Sprint Product Backlog 3 142
Documentation 2 104
File Manager 10 76
What’s the difference between Management and Project Management? Even though the same management principles of Planning, Organizing, Leading and Controlling apply to Project Management, the focus is quite different. Definition What’s a project? …
You can provide a virtual interface for remote stakeholders in a SWOT analysis through a Google Drawing template. By making real time viewing and collaboration possible, your team can build a stronger product.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

706 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now