title | ms.service | api_name | ms.assetid | ms.date | ms.localizationpriority | |
---|---|---|---|---|---|---|
Project.ReadOnlyRecommended property (Project) |
project-server |
|
f35003bc-97fb-3acd-f629-7bb8addc5261 |
06/08/2017 |
medium |
True if the project should be opened with read-only access. Read-only Boolean.
expression. ReadOnlyRecommended
expression A variable that represents a Project object.
To change the value of the ReadOnlyRecommended property, use the FileSaveAs method with the ReadOnly argument set to True.
The following example displays the recommended access type for the active project.
Sub DisplayAccessType()
If ActiveProject.ReadOnlyRecommended Then
MsgBox "Read-only access is recommended for this project."
ElseIf ActiveProject.ReadOnly Then
MsgBox "This project may only be opened read-only."
Else
MsgBox "Read/write access is allowed for this project."
End If
End Sub
[!includeSupport and feedback]