Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 1.18 KB

Project.Project.ReadOnlyRecommended.md

File metadata and controls

46 lines (30 loc) · 1.18 KB
title ms.service api_name ms.assetid ms.date ms.localizationpriority
Project.ReadOnlyRecommended property (Project)
project-server
Project.Project.ReadOnlyRecommended
f35003bc-97fb-3acd-f629-7bb8addc5261
06/08/2017
medium

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

[!includeSupport and feedback]