Table of contents
TOC
Collapse the table of content
Expand the table of content

Project.IsCheckoutOSVisible Property (Project)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Gets whether the Check Out button is visible in the Backstage view. Read-only Boolean.

Syntax

expression. IsCheckoutOSVisible

expression A variable that represents a Project object.

Remarks

If the active project is not checked out, the Backstage view shows a Check Out button. The IsCheckoutOSVisible property is True if the Check Out button is visible in the Backstage view; otherwise, False.

Example

The following example tests whether the checkout message bar is visible; if so, it hides the message bar. However, if the project is not checked out, the backstage view still shows the Check Out button, so the example can try to check out the project. If the project is checked out by you or checked out to someone else, Project shows an error dialog box with the message, "This project is already checked out to you on a different computer or Project Web App session."

Sub TestBackstageCheckout()
    ' Hide the checkout message bar.
    If ActiveProject.IsCheckoutMsgBarVisible Then
        ActiveProject.HideCheckoutMsgBar
    End If

    ' If the Backstage Check Out button is visible, then the
    ' project is not checked out.
    If ActiveProject.IsCheckoutOSVisible Then
        ActiveProject.CheckoutProject
        Debug.Print "Attempted to check out: '" &; ActiveProject.Name &; "'"
    Else
        Debug.Print "'" &; ActiveProject.Name &; "' is already checked out."
    End If
End Sub

Property value

BOOL

See also

Concepts

Project Object

Other resources

IsCheckoutMsgBarVisibleHideCheckoutMsgBar MethodCheckoutProject Method

© 2018 Microsoft