Profiles.Add method (Project)

Adds an account Profile object to the Profiles collection.

Syntax

expression.Add (Name, Server, LoginType, UserName)

expression A variable that represents a 'Profiles' object.

Parameters

Name Required/Optional Data type Description
Name Required String The name of the profile.
Server Required String A string representing the URL of the Project Server.
LoginType Optional Long The login type for the Project Server. Can be one of the PjLoginType constants. The default value is pjWindowsLogin.
UserName Optional String A string representing the user name.

Return value

Profile

Remarks

The UserName argument can be either a Project Server user name, if the LoginType is pjProjectServerLogin, or a user name for a Windows account. For example, if the LoginType is pjWindowsLogin, a user name might be DOMAIN\jsmith.

See also

Profiles Collection Object

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.