Gets a value that indicates the last recorded balloon error. Read-only .

Note
The Microsoft Office Assistant has been deprecated in the release of the Microsoft Office system.The Microsoft Office Assistant has been deprecated in the release of the Microsoft Office system.

Syntax

expression.BalloonError

expression A variable that represents an Assistant object.

Remarks

The BalloonError property returns a msoBalloonErrorType enumeration.

Example

This example creates a balloon that generates an error. The error is generated because the balloon is created without a way to dismiss it: the button type is set to msoButtonSetNone and the default balloon mode is msoModeModal, resulting in a buttonless, modal balloon. Note that there's no way to dismiss a buttonless modal balloon.

Visual Basic for Applications
With Application.Assistant With .NewBalloon .Heading = "This will never show." .Text = "Imagine a balloon here." .Button = msoButtonSetNone .Show End With .Visible = True If .BalloonError = msoBalloonErrorButtonlessModal Then MsgBox "You need a button to dismiss the balloon." End If End With
Balloon balloon error Balloon Error Property BalloonError balloonerror property create balloon that generates an error number design balloon error because no way to dismiss it ofv return a number which represents last recorded balloon error

See also: