Profile.Type property (Project)
Gets a value that specifies whether the account profile being used is a local profile or for Project Server. Read-only PjProfileType.
Syntax
expression.Type
expression A variable that represents a Profile object.
Remarks
The Type property can be one of the following PjProfileType constants: pjLocalProfile or pjServerProfile.
The Project Server Accounts dialog box shows the number and order of profiles. Use Profiles.Count
to programmatically determine the number of account profiles defined in Project Professional.
Example
If the second account profile is a Project Server account, the following statement returns 1, which is the value of the pjServerProfile constant.
Debug.Print Profiles(2).Type
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.