SetAvoidRectangle Method
Some of the content in this topic may not be applicable to some languages.
Prevents the Office Assistant balloon from being displayed in a specified area of the screen.
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 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.
Set myBalloon = Assistant.NewBalloon
With myBalloon
.SetAvoidRectangle 300, 250, 700, 500
.Text = "Cannot display in coordinates " & _
"300, 250, 700, 500."
.Show
End With
Applies to | Balloon Object
See Also | ActivateWizard Method | EndWizard Method | StartWizard Method