MS Project 2010 – Project Windows off screen, can’t restore or view – data is missing!

25th October, 2012 – 9:44 am

I’ve had an issue with MS Project where I mimimise the window within project of my active project and then no matter what I do with views or zoom I can’t seem to restore it.

Not found the root of the problem but you can restore your precious project plan via VBA.

EDIT – the code had some none ascii chars and I’ve updated the title to cover more issues I’ve solved with the code in solution 2 in the office. It seems to be an issue where you switch from multiple monitors to a single and back (e.g. undocking your laptop – something PMs do multiple times a day!)

Solution 1

1.  Press Alt + F11

2.  If you know how to create a macro then add and run this code – if you don’t follow step 3.
Sub restoreLostProject()

ActiveProject.Windows(1).WindowState = pjMaximized

End Sub

3.  Ignore the scary window – find the box titled “Immediate” copy the text

ActiveProject.Windows(1).WindowState = pjMaximized

and paste into this box and hit enter.    If the Immediate window is hidden go to View -> Immediate Window from the menu.


MS Project 2010 - hidden minimised plan

MS Project 2010 – hidden minimised plan



Solution 2

This, from the MS Project help files will fix it permanently!

Sub CascadeWindows()
Dim ' As Integer

ActiveWindow.WindowState = pjNormal ‘ Restore the window.

With Application.Windows
For i = 1 To .Count
.Item(i).Top = (I – 1) * 15
.Item(i).Left = (I – 1) * 15
Next I
End With

End Sub

  1. 6 Responses to “MS Project 2010 – Project Windows off screen, can’t restore or view – data is missing!”

  2. I had the same problem and I could fix it creating the macro of the solution 1 step 2.
    I guess the problem was that I was working with Project 2010 and the file had the Project 2007 format.

    By Alejandro on Apr 3, 2013

  3. You’re welcome Alejandro – happy it helped someone else.

    By Steve Morgan on Apr 3, 2013

  4. Hey Steve,

    I have this site bookmarked for the once a week occurence and it works. Someday when I’m less busy I might get aggressive and try to fix it permanently. Thanks!

    By Derek Mallory on Apr 11, 2013

  5. Does solution 2 really work?

    I tried it, and gives me a compile error. It seems VBA does not like having ‘ as integer.
    Am I missing somethig here?
    I also have the following as reds (sytax errors?):

    ActiveWindow.WindowState = pjNormal ‘ Restore the window.

    .Item(i).Top = (I – 1) * 15
    .Item(i).Left = (I – 1) * 15

    By Adolfo on Apr 27, 2015

  6. While looking into what it would take to make a macro for solution number 2, I stumbled upon a built-in “fix” for the problem: Cntl + F10 restores the “hidden” window to full screen – no macros or VBasic commands required. 🙂

    By PaulArel on May 12, 2015

  7. I suspect this is due to the age old problem of some of the characters being changed. ensure it’s a ‘ and not the angled, styled ‘ character.

    By Steve Morgan on Jun 15, 2015

Post a Comment