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

Project.HideCheckoutMsgBar Method (Project)

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

Hides the project checkout message bar.

Syntax

expression. HideCheckoutMsgBar

expression A variable that represents a Project object.

Return value

Nothing

Remarks

The checkout message bar is the yellow information bar near the top of the Project window that shows READ-ONLY This project was opened in read-only mode, and contains a Check Out button. If the checkout message bar is not visible, the HideCheckoutMsgBar method displays run-time error 1004, "An unexpected error occurred with the method."

Example

The following example tests whether the checkout message bar is visible; if so, it hides the message bar.

Sub TestHideCheckoutMessageBar()
    If ActiveProject.IsCheckoutMsgBarVisible Then
        ActiveProject.HideCheckoutMsgBar
    End If
End Sub

See also

Concepts

Project Object

Other resources

IsCheckoutMsgBarVisible PropertyCheckoutProject Method

© 2017 Microsoft