Your Personal Assistant: Project can remind the tasks due this week


In my earliest post, you learnt how to write event procedures for Project and Application object. In this post, I will focus on a very simple tip – "How to highlight the tasks due this week every time the project plan is opened?".

Looks very simple and it is indeed very simple.

1. Click View tab. Click Macros dropdown and select Visual Basic
image12.png?w=640

2. In the editor, double click your current project on the left panel.

3. Now change the object and procedure to "Project" and "Open".

4. This will include a private sub-routine which will be invoked when the file is opened

5. Within this sub-routine, include the below script

6. Close the editor, and close the project

Open the project file, and Project will highlight the incomplete tasks that should be completed by this week.

Highlight items after every change


Project 2013 gives features to highlight, filter and group tasks on certain conditions. These commands are available in View ribbon.

I have selected the criteria "Critical" in Highlight list, and Project highlights the critical tasks with yellow background color.

Wonderful!!

Now, I changed the duration of Build 2 to 4 days. This task doesn’t get highlighted though it is part of the critical path. Why?

After selecting the criteria, Project applies it only once in the current view. In other words, Project doesn’t refresh the view after every change.

You need to write a small script that will be apply the filter after every change, and this is quite simple.

1. Click View tab. Click Macros dropdown and select Visual Basic

2. In the editor, double click your current project on the left panel.
3. Now change the object and procedure to "Project" and "Change".

4. This will include a private sub-routine which will be invoked automatically after every edit!!

5. Within the sub-routine, include the below script. This code applies the Critical filter if the current view is "Gantt Chart"
If pj.CurrentView = "Gantt Chart" Then
FilterApply Name:="Critical", Highlight:=True
End If

6. Close the editor.

Now, I changed the duration of Build 2 to 5 days and Project automatically highlights the critical tasks 🙂