Project.HideCheckoutMsgBar Method (Project)

Hides the project checkout message bar.


expression. HideCheckoutMsgBar

expression A variable that represents a Project object.

Return value



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."


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

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

See also

Project Object

IsCheckoutMsgBarVisible Property CheckoutProject Method