Project) (Project.ReadOnlyRecommended 屬性

True 如果應該具有唯讀存取開啟的專案。 唯讀的 Boolean。

語法

expression。 ReadOnlyRecommended

運算式 代表 Project 物件的變數。

註解

若要變更 ReadOnlyRecommended 屬性的值,請使用 FileSaveAs 方法 ReadOnly 引數設定為 True 。

範例

下面範例顯示使用中專案的建議存取類型。

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

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。