Back to ArticlesBack

Join 50,000+ PM Professionals

Get expert PM insights, PMP prep tips, and earn PDUs with exclusive content delivered weekly.

Protected by reCAPTCHA: Privacy & Terms

MPUG - Master Project User GroupMPUG - Master Project User Group

If you’re using Project 2010 or Project 2013, use the following subroutine to display the formula in a custom field:

‘ © Ismet Kocaman
‘
Sub Show_Formula()
If Application.CustomFieldGetFormula(ActiveCell.FieldID) <> “” Then
MsgBox Title:=”Field: ” & ActiveCell.FieldName, Prompt:= _
Application.CustomFieldGetFormula(ActiveCell.FieldID)
Else
MsgBox Title:=”Field: ” & ActiveCell.FieldName, Prompt:= _
“No Formula”
End If
End Sub

To add this subroutine to a project plan file, follow these steps:

1. Open a blank mpp file and save it with a new name, such as “ShowFormula.mpp”.
2. Click Alt-F11 to open Visual Basic Editor.
3. Click VBAProject(ShowFormula.mpp) on the left and open the Insert menu from the menu bar.
4. Click Module to insert a module.
5. Click Module1 (or the module inserted) on the left, and copy the subroutine above and paste it into the Module1 window on the right.
6. Close Visual Basic Editor.

To add a button for the subroutine to the Quick Access Toolbar, do this:

1. Click the File tab and select Options to display the Project Options dialog box.
2. Click the Quick Access Toolbar and select Macros in the Choose commands from drop-down.
3. Select ShowFormula.mpp|Show_Formula on the left and click Add in order to add ShowFormula.mpp|Show_Formula to the command list in the Customize Quick Access Toolbar box on the right.
4. Use Modify to select any icon that you like and enter a display name for the subroutine.
5. Click OK to close the Project Options dialog box.

Now the icon for the subroutine will appear on the toolbar. Click a custom field containing a formula and then click the button for the Show_Formula to see how it works.

Ismet Kocaman custom field quick view

Get Weekly PM Insights

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

Protected by reCAPTCHA: Privacy & Terms

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

© 2026 MPUG. All rights reserved.

TermsPrivacySitemapAdvertise
Articles

Get a Quick View of a Custom Field Formula

If you’re using Project 2010 or Project 2013, use the following subroutine to display the formula in a custom field: ‘ © Ismet Kocaman ‘ Sub Show_Formula() If Application.CustomFieldGetFormula(ActiveCell.FieldID) <> […]

2 min read
•over 10 years ago•Updated 3 months ago•
I
Ismet KocamanAuthor
Project Management
Microsoft Project
Best Practices
Productivity
I
Ismet Kocaman

Content Writer

Ismet Kocaman, MCTS, PMP, is a Mechanical Engineer and has more than 15 years of project management experience in the manufacturing sector. He currently provides consultancy to small to mid-sized companies on project management, reorganizing, and streamlining the manufacturing operations. He also conducts training seminars for engineers on MS Project. Contact Ismet at ikocaman.pm@gmail.com.

View all articles by Ismet Kocaman
Related Content

Continue Reading

Discover more insights and articles that complement your current reading

The Toilet Paper Rule: Why Small Problems Become Big Failures
Articles
1 min read

The Toilet Paper Rule: Why Small Problems Become Big Failures

Ronald B. Smith uses the humble toilet paper roll to unpack six enduring truths about preparation, quality, and the invisible work of project management.

A
Anonymous
3 days ago
Read
Are You Running a Risk Meeting or a Risk Workshop?
Articles
1 min read

Are You Running a Risk Meeting or a Risk Workshop?

Learn the difference between a risk meeting and a risk workshop, and why structured risk workshops help project teams identify owners, define actions, and protect project outcomes.

A
Anonymous
10 days ago
Read
&#8220;I Need a Dashboard by Friday&#8221; &#8211; How AI Just Made That Possible
Articles
1 min read

“I Need a Dashboard by Friday” – How AI Just Made That Possible

Need a dashboard by Friday? Discover how AI tools like ChatGPT can help you build an Excel dashboard quickly and easily—no advanced technical skills required. Learn how to turn plain-English requests into real, working reports with spreadsheets that actually work for you.

A
Anonymous
10 days ago
Read
Explore All Articles