Prevents the Office Assistant balloon from being displayed in a specified area of the screen.

Note
The Microsoft Office Assistant and AnswerWizard have been depreciated in the release of the Microsoft Office system.

Syntax

expression.SetAvoidRectangle(Left, Top, Right, Bottom)

expression A variable that represents a Balloon object.

Parameters

Name Required/Optional Data Type Description
Left Required Integer The coordinates (in points and relative to the screen) at the left area of the screen that the Office Assistant balloon will avoid when it's displayed.
Top Required Integer The coordinates (in points and relative to the screen) at the top area of the screen that the Office Assistant balloon will avoid when it's displayed.
Right Required Integer The coordinates (in points and relative to the screen) at the right area of the screen that the Office Assistant balloon will avoid when it's displayed.
Bottom Required Integer The coordinates (in points and relative to the screen) at the bottom area of the screen that the Office Assistant balloon will avoid when it's displayed.

Remarks

This property is intended to prevent the Office Assistant balloon from overlapping custom dialog boxes and wizards.

Example

This example prevents the Office Assistant balloon represented by the variable myBalloon from being displayed in the region of the screen denoted by the specified coordinates.

Visual Basic for Applications
Set myBalloon = Assistant.NewBalloon With myBalloon .SetAvoidRectangle 300, 250, 700, 500 .Text = "Cannot display in coordinates " & _ "300, 250, 700, 500." .Show End With
exclude screen areas where office assistant balloon is displayed ofv prevent office assistant balloon from overlapping dialog boxes or wizards set set avoid rectangle Set Avoid Rectangle Method setavoid SetAvoidRectangle setavoidrectangle method stop office assistant balloon from displaying in a specific area of screen

See also: