title | keywords | f1_keywords | ms.service | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|---|
Project.MakeServerURLTrusted method (Project) |
vbapj.chm132401 |
|
project-server |
|
8ef5ae1c-f22f-325c-07a9-253e64c62cb0 |
06/08/2017 |
medium |
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.
expression. MakeServerURLTrusted
expression A variable that represents a Project object.
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."
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]