Project.ReadOnlyRecommended property (Project)
True if the project should be opened with read-only access. Read-only Boolean.
Syntax
expression. ReadOnlyRecommended
expression A variable that represents a Project object.
Remarks
To change the value of the ReadOnlyRecommended property, use the FileSaveAs method with the ReadOnly argument set to True.
Example
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
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.