Home → More on Networks → Overview → @RISK with Project Files on a Server
Applies to:
@RISK 6.x/7.x
@RISK for Project 4.x
Can I run @RISK with an .MPP file that resides on a server?
Yes, if it's an actual .MPP file.
What about a project in Microsoft Project Server?
A problem does arise if your files are stored in Microsoft Project Server, because in this case there is no actual .MPP file for @RISK to work with. If you have files stored in Project Server, follow these steps to use @RISK with your project:
In @RISK 6.x/7.x:
In @RISK for Project 4.x:
Can we automate the process of checking the MPP file out of Project Server and back in?
Yes, use the FileOpenEx method to get the file from Project Server, and the SaveForSharing method to save it as a local MPP file, and finally Names.Add to update the link from @RISK to the project file. Here's some sample code to place in a module in your Excel workbook:
Private Sub OpenProject() On Error GoTo fail: 'Declare variables Dim appProj As MSProject.Application Dim aProg As MSProject.Project Dim filePath As String Set appProj = CreateObject("MSProject.Application") 'Open project from MS Project Server: appProj.FileOpenEx Name:="<>\Example Drilling Project", ReadOnly:=False, _ UserId:="username@example.com", _ DatabasePassword:="mypassword", FormatID:="MSProject.odbc" 'Set active project Set aProg = appProj.ActiveProject 'Show MS Project window appProj.Visible = True 'Save project as MPP temporarily. Make sure project is open as read/write. filePath = ActiveWorkbook.Path & "\" & aProg.Name & ".mpp" appProj.SaveForSharing Filename:=filePath 'Update RiskMPPPath ActiveWorkbook.Names.Add Name:="RiskMPPPath", RefersTo:=filePath fail: If Err.Number <> 0 Then MsgBox Err.Description End Sub
In your VBA module, you'll need to set a reference to the Microsoft Project nn.0 Object Library, where nn is 12 for Project 2007, 14 for Project 2010, 15 for Project 2013, or 16 for Project 2016.
What about enterprise custom fields?
@RISK cannot read enterprise custom fields, only local custom fields, even if the .mpp file is stored locally.
Additional keywords: Enterprise Project Management
Last edited: 2015-12-29