SetAvoidRectangle Method

Applies To

Balloon object.

Description

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

Syntax

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

expression Required. An expression that returns an Assistant object.

Left, Top, Right, Bottom Required Long. The coordinates (in points and relative to the screen) of the area of the screen that the Office Assistant balloon will be excluded from when it's displayed.

Remarks

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

See Also

ActivateWizard method, EndWizard method, StartWizard method.

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 (measured in pixels).

With myBalloon
    .SetAvoidRectangle 300, 250, 700, 500
    .Show
End With