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
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.