MessageBar Object
Description
Represents a Message Bar object.
For a list of all members defined in this module, see MessageBar Members.
Remarks

The message bar is an Office 2007 style message bar similar to that displayed when opening a document with a "unsafe" macro or other "unsafe" content in MS Word 2007.
The MessageBar property of the command bars is used to reference the message bar.
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
- MessageBar Members
- MessageBar Property
- AddButton Method
- AddCloseButton Method
- Message Property
- Visible Property
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.