Back to ArticlesBack

Subscribe to our newsletter

Get the latest articles and resources sent straight to your inbox.

MPUG

Project Management technology should never be more complicated then managing a project! Did you know that using macros can enhance the efficiency of Microsoft Project significantly? Of course, the thought of writing and recording macros to meet your unique needs can often prove challenging to those of us who are not technical programmers. I’d like to suggest that the average business user can easily customize Microsoft Project with macros to maximize its value.

Record a Macro

Macros help you to automate tasks that may be tedious and time consuming, while also reducing the potential for errors. We’ll use a simple example to demonstrate how this works – the creation and printing of a status report that shows all completed tasks in your project.

When preparing this report manually, follow these steps:

  1. Apply the Gantt Chart view to your project.
  2. From the View tab in the ribbon, click the Filter dropdown list, and then select Completed Tasks.

3. Print the displayed list of completed tasks:
– From the File menu, click Print.
– Customize the printed view by clicking Page Setup, modifying the layout as follows, and then clicking Print.

4. To remove the applied filter, change the Completed Tasks filter to [No Filter].

Now it’s time to automate the four steps above.  From the View menu, click Macros > Record Macro.

In the Record Macro dialog, name your macro: PrintCompletedTasks, and click OK. Note that once you click OK, all following steps will be recorded until you click Macros > Stop Recording.

Run through Steps 1 – 4 above, following the process you manually use to create and print this report. Then click Macros > Stop Recording.

Assign a Macro to a Button in the Ribbon

Adding a button to the Microsoft Project Ribbon to initiate this macro ensures that creating your report is as simple as clicking a button.

  1. Right-click in the ribbon area, and select Customize the Ribbon.
  2. In the left column of the Project Options dialog, select the recently created macro and move it to the right column (select your preferred location there) by clicking Add.
  3. Once the macro has been added to the ribbon, you can select it and click Rename… to provide a more user-friendly name and associated icon.

4. Click OK and you will see your new macro.  Simply click the Print Completed Tasks button and print your report.

I will dive deeper into this topic in my upcoming three-part course, Exploring VBA: Microsoft Project’s Macro Language. We’ll cover how to effectively use Microsoft Project’s macro capabilities for various tasks.

Get Weekly PM Insights

Join 500,000+ PMs receiving updates on the latest PM methodologies, PDU opportunities, tool reviews, career tips, and member exclusives.

PMI ATP
PMI Authorized Training Partner
REP #4082

Learning Paths

PMP® TrainingCAPM® TrainingPgMP® TrainingPMI-ACP® TrainingMS ProjectMS PlannerMS TeamsJira

PM Resources

PDU TrackerLive WebinarsSalary CalculatorTool ComparisonsJob BoardKnowledge BasePM Glossary

Community

Discussion ForumStudy GroupsEvents Calendar

Follow Us

LinkedInYouTubeTwitterFacebook
MPUG Logo

© 2025 MPUG. All rights reserved.

TermsPrivacySitemap
Articles

Streamline Project Reporting with Microsoft Project Macros

Project Management technology should never be more complicated then managing a project! Did you know that using macros can enhance the efficiency of Microsoft Project significantly? Of course, the thought […]

2 min read
•over 4 years ago••
I
Ira BrownAuthor
Project Management
Microsoft Project
Best Practices
Productivity
I
Ira Brown

Content Writer

Ira Brown is a leader in the field of project management and a recognized Microsoft Project expert, Project Widgets is well-known for offering add-on products for Microsoft Project and Project Online, as well as for creating custom solutions that meet their client's unique business requirements.  This company continues to extend the scope and breadth of their offerings, thereby increasing the value they provide to customers, by creating Microsoft Project solutions that are tailored to an organization's unique needs.  They even have several free, downloadable widgets available on their website that you can begin using right away.

View all articles by Ira Brown
Related Content

Continue Reading

Discover more insights and articles that complement your current reading

Two Project Manager Agent Features You Might Like
Articles
5 min read

Two Project Manager Agent Features You Might Like

Discover two game-changing features of Microsoft’s Project Manager Agent including agent-to-agent communication and the new integrated interface in Planner.

E
Erik van Hurck
about 1 month ago
Read
Master Dependency Analysis in Microsoft Project with SSI Tools!
Articles
2 min read

Master Dependency Analysis in Microsoft Project with SSI Tools!

Learn how to master dependency analysis in Microsoft Project using SSI Tools’ Directional Path, Connecting Path, and Dependency Tracer to analyze predecessors, successors, and project logic.

K
Kenny Arnold
about 2 months ago
Read
A PM’s Halloween Survival Guide
Articles
5 min read

A PM’s Halloween Survival Guide

Discover the spooky parallels between Halloween and project management, from scope creep monsters to ghosted team members, in this fun survival guide for PMs.

R
Ronald B. Smith, MBA, PMP
2 months ago
Read
Explore All Articles