Message Property
Description
Gets or sets the message displayed in the message bar.
Property Type
Read-write property
Syntax (Visual Basic)
Public Property Message() As String
Remarks
The message displayed can contain simple text or it can contain an XML string as in the sample below. Use XML strings to add items such as images and formatted text.

Example
Dim MessageBar As MessageBar
Set MessageBar = CommandBars.MessageBar
MessageBar.Visible = True
MessageBar.AddCloseButton "Close Message Bar"
MessageBar.AddButton ID_EDIT_COPY, "Options...", "Show more options"
MessageBar.Message = _
"" & _
" " & _
" Security Warning" & _
" Certain content has been disabled." & _
""
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.