Share via


Project.ReadOnlyRecommended Property

Project Developer Reference

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 assign a new value to the ReadOnlyRecommended property, use the FileSaveAs method.

Example
The following example displays the recommended access type for the active project.

Visual Basic for Applications
  Sub DisplayAccessType()
If ActiveProject.<strong class="bterm">ReadOnlyRecommended</strong> 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

See Also