Share via


Balloon.Private Property

Office Developer Reference

Gets or sets an integer that identifies the Office Assistant balloon that initiated the callback procedure. Read/write.

Aa432334.vs_note(en-us,office.12).gif  Note
The Microsoft Office Assistant and Balloon object have been deprecated in the 2007 release of the Microsoft Office system.

Syntax

expression.Private

expression   A variable that represents a Balloon object.

Remarks

This property is helpful if you run the same callback procedure from more than one balloon.

Example

This example identifies the Office Assistant balloon by setting the Private property to 129.

Visual Basic for Applications
  Set printerOrientation = Assistant.NewBalloon
With printerOrientation     .Heading = " Print portrait or landscape?"
     .Text = "Click OK when you've selected the " & _
        "printer orientation."
    .Labels(1).Text = "Portrait"
    .Labels(2).Text = "Landscape"
    .BalloonType = msoBalloonTypeButtons
    .Mode = msoModeModeless
    .Button = msoButtonSetOK
    .Private = 129
    .Callback = "PortraitOrLandscape "
    .Show
End With

See Also