Project.HideCheckoutMsgBar method (Project)
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
IsCheckoutMsgBarVisible Property CheckoutProject Method
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.