This documentation is archived and is not being maintained.

Project.MakeServerURLTrusted Method (Project)

Adds the URL specified in the ServerURL property to the Trusted sites zone in the Security tab of the Internet Options dialog box in Microsoft Internet Explorer.

expression .MakeServerURLTrusted

expression A variable that represents a Project object.

If no Project Server URL is specified for the project, Microsoft Project 2010 displays an error message stating: "A Project Server URL has not been specified. To specify a URL, on the Tools menu, click Options, and then click the Collaboration tab."

The following sample adds the URL specified in Collaboration Options ( Collaborate menu) to the list of trusted sites in Microsoft Internet Explorer. Upon confirmation, Project 2010 switches to a Resource Sheet view and displays the displays the Build Team for <Project Name> dialog box when connected to Microsoft Project Server 2010 .

Sub MakeURLTrusted() 
   If Projects.Count = 0 Then 
      MsgBox "You must have at least one active project open." 
      Exit Sub 
   End If 
   If ActiveProject.ServerURL = "" Then 
      MsgBox "A Project Server URL has not been " _ 
         & "specified." & Chr(13) & "Click OK, and then " _ 
         & "specify a valid URL in the Project Server Accounts dialog box."  
      ViewApply Name:="Resource Sheet" 
   End If 
End Sub