Skip to content

Latest commit

 

History

History
56 lines (39 loc) · 1.84 KB

Project.Project.MakeServerURLTrusted.md

File metadata and controls

56 lines (39 loc) · 1.84 KB
title keywords f1_keywords ms.service api_name ms.assetid ms.date ms.localizationpriority
Project.MakeServerURLTrusted method (Project)
vbapj.chm132401
vbapj.chm132401
project-server
Project.Project.MakeServerURLTrusted
8ef5ae1c-f22f-325c-07a9-253e64c62cb0
06/08/2017
medium

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 Internet Explorer.

Syntax

expression. MakeServerURLTrusted

expression A variable that represents a Project object.

Remarks

If no Project Server URL is specified for the project, Project Professional 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."

Example

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

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." 
   Else 
      ActiveProject.MakeServerURLTrusted 
      ViewApply Name:="Resource Sheet" 
      Application.AddResourcesFromProjectServer 
   End If 
End Sub

[!includeSupport and feedback]