Project.HideCheckoutMsgBar Method (Project)

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