Looking to Recover your Global.MPT? You’re in good company….

When working with Microsoft Project (MSP), there is nothing more frustrating than losing the hard work you’ve put into a file whether it’s a schedule or VBA / Macros to work with your schedule.

Today I’m here writing about ways to try to recover your Global.MPT because I completely lost it today…. or so I thought.  I was happily coding away building an awesome script in VBA  and was feeling such success when this setback had me going from blissful to horrified in seconds.  The code hung and I had to force MSP to close.  Once I tried to open it back again and go to my code, it was all gone!  The first thought that crossed my mind was, “Why didn’t I back it up?!?”  followed by, “How  could I have done such a rookie mistake?!?”

I then tried to calm down and try to troubleshoot and see if I had actually lost it all.   The thing is, I keep a backup of all my code that I push to production from the development environment. The code that I build as helper functions such as adding text to the beginning or the end of a group of tasks quickly, this code I keep it in my .MPT file because I don’t want to keep it in the development environment and accidentally push it to production.  I had built quite a few of this functions in the last couple of weeks, but hadn’t taken the time to back them up…. they are just little helper functions anyway, right?  Hard lesson to learn was how important they are to me once I realized they were all gone….

A quick search online does not quickly give you ways to try to restore your Global.MPT file.  I had to dig deep to actually find different methods to try.  I will add the two that might give you results.  Firstly, to find where in your computer you might find your Global.MPT,  you can check out this article from Microsoft Support.

Once I found my Global.MPT  on my computer at:

“C:/users/[your user name]/App data/Roaming/Microsoft/MS Project/1033”

I then immediately:

  1. Closed Microsoft Project completely
  2. Copied the Global.MPT file to a new folder
  3. Once I had a copy, I went back to the above address and renamade the file and changed the extension of the file to .MPP
  4. Then I opened the newly renamed file in step 3 with Microsoft Project
  5. The organizer pops up, then choose the Modules tab and copy all the “lost” modules to your new MPT file
  6. Make sure to reset any references in your library you were using for your macros if any

Of course, this doesn’t work for everyone.  If you are one of the unlucky ones, I have one more trick up my sleeve.  I found this solution when I was ready to give up on recuperating my awesome code.  I had already started to mourn the loss of such great work…

  1. Go to C:\Users\[Your User Name]\AppData\Local\Temp
  2. Filter by Date
  3. Scroll down until you find your latest, mine was: “AutoRecovery Save of Global (183).MPT
  4. I immediately made a copy before I attempted to open.
  5. Once I had the backup, I renamed the file and changed the extension to .MPP
  6. I opened it and the Organizer was immediately launched.
  7. I copied over my code from the Modules tab to my new file.

I cannot tell you the immense relief I felt once I figured I hadn’t lost it all.  I can recreate the few lines I did lose, but those helper functions are life (and time) savers for sure!

The moral of the story for both you and I is to make sure to create backups of ALL your code.  Even code that you might not think is very important.  It’s better to have it and not need it, than to need it and not have it.

Some ideas to save your code would be first of all NOT keep the code in Global.MPT.  Even if you do, make sure to save your code in an actual .MPP file and create backups of that.  Also, you can export your modules as .bas files or .frm for forms to a folder on your desktop.  I’ve actually created code that exports all of them quickly.  That’s one of the sub routines I had thought lost forever!  That would have been a shame to lose….

Anyway, good luck  recuperating your Global.MPT file…. know that you are in good company!


Microsoft Project VBA: How to open a project file from Excel

Recently I’ve been playing around on how to open a Microsoft Project file from Excel using macros / VBA scripts.  I’m currently using MS Project 2010 and MS Excel 2010.  This script should work at minimum for MS Project 2010 / 2013.  If you need it for earlier version, it should be similar, so play around with the code.

You can build a procedure Sub in your VBA Editor after you add a new Module to your current workbook.

Before starting to write your code, make sure you have the right references to access Microsoft Project! Click on Tools>References>Microsoft Project xx.x Object Library. Then click okay.

Now you are ready to start coding in MS Excel to access information from MS Project!  Let’s start by opening an MS Project file from MS Excel.

Make sure to first set up your variables, which in this script you only need one.  You will need one variable for your MS Project application, which I called projApp.

I use the On Error Resume next in case MS Project is not installed and an error occurs.  This way the code stops running and you don’t get an error.  We set projApp to be a new  instance of object type.  This means we can now access everything we need in MS Project.

NOTE: Every time you run a new Macro /  VBA script you run a risk of losing all your work.  When trying out new code I recommend you use it on copies of your projects and not on active projects.  This way if your VBA doesn’t run correctly, you won’t lose valuable information.  Run it at your own risk!

Sub OpenProject()
Dim projApp As MSProject.Application


'Excel Set up to access MS Project
On Error Resume Next
Set projApp = GetObject(, "MSProject.Application")
If projApp Is Nothing Then
Set projApp = New MSProject.Application
End If
projApp.Visible = True


'Open MS Project file
projApp.Application.FileOpenEx "C:\<>\My Example Project.mpp" 

Set projApp = projApp.ActiveProject

'Final set up of code
Set projApp = Nothing

End Sub

Where you see “C:\<>\My Example Project.mpp”, this is where you put the information on where YOUR file is located.  I took out most of my file path to not make it confusing

The last comment I want to make is that about the MS Project file you might be trying to open.  I have found that if your MS Project file has macros, then you might have trouble using this macro because of Microsoft built in security. You might have to change the security settings so that your macro can work.

Otherwise, it works like a charm!


MS Project 2010/2013 – List of Shortcuts

When building schedules, sometimes it’s easier to make changes by using shortcuts in Microsoft Project.  Here is a short list of the shortcuts I seem to use most frequently.  I might update this list to add other shortcuts.  If you know of other shortcuts, tell me and I can add them to this list.


Introduction to Mad Schedules

Here I am writing my first post for Mad Schedules! I’m pretty excited because I have been thinking about doing this project for many months, even maybe many years! I just didn’t know exactly how I wanted it to look like. Now I have a better idea of what I want to write about. That doesn’t mean I’m a professional writer. Actually, English is my second language, so please be kind. If you find any blatant misspellings (I always run spell check) or grammatical errors you can’t ignore, please contact me and let me know! I’ll try to fix them as soon as possible.

So who am I? My name is Minerva Goree. I’ve spent the better part of the last 7 creating, implementing, and executing project schedules. If I take into account the times I used MS Project during college and my internship, I would say I have much more experience, but who’s counting? I started scheduling with MS Project 2003 during college and my engineering internship at Nextwave Wireless in San Diego, California. I then was the master scheduler for overhauling jet propulsion engines at Lockheed Martin for about 4 years and used MS Project 2003 and 2007. Now I’m a program planning and scheduling analyst for Sierra Nevada Corporation and mainly use MS Project 2010/2013. Many of the programs I’ve scheduled have been multi-million dollar endeavors. Keeping these projects on track and delivering on schedule has saved these companies hundreds of thousands of dollars over the years.

Now I’ve taken my skills and started consulting on the side. My clients seem to be extremely happy with the solutions I provide for them. Now I am going to showcase my portfolio here, and also share some tips and tricks to build simple and effective schedules. I also want to explore other tools used to build and communicate schedules. Most people know schedules better as Gantt charts. I build many high level schedules using MS Excel after doing a sanity check on MS Project. Oh, and for those interested to know what degrees I hold, I have a BS in Mathematics and an MS in Software Engineering.

Why did I name this site MAD Schedules? Why not? Most project managers that are faced with the daunting task of building an effective project plan and schedule feel like they’ve enter the world of madness. So a little crazy is good. Don’t worry, I’ll try to demonstrate how scheduling can be done in simple steps without having the need to tear out your hair… or not a lot of it. 😉

What would you like to see on this site? I’m always open to constructive questions and comments.