Global.mpt code runs twice RRS feed

  • Question

  • Hi,

    My client is creating project files that use the code from the Global.mpt file.

    The code in the Global.mpt file (This Project) looks like this:

    If MSProject.Application.Projects.Count > 0 Then
      If ActiveProject.ProjectSummaryTask.Flag1 Then
      End If
    End If

    This code updates a database with data from the project file. Everything works well if user closes only the project file (without closing the MS Project application) But when user closes the MS Project application and the poject file at the same time by clicking on the X of the MS Project the code in the Global runs twice.

    Any idea why this would be happening and what are the possible options?


    Thursday, May 29, 2014 11:29 PM


All replies