Table of contents
TOC
Collapse the table of content
Expand the table of content

Project.MakeServerURLTrusted Method (Project)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

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 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
© 2017 Microsoft