Balloon.Callback Property
Returns or sets the name of the procedure to run from a modeless balloon.
Namespace: Microsoft.Office.Core
Assembly: office (in office.dll)
Dim balloon1 As Balloon
Dim returnValue As String
returnValue = balloon1.Callback
Dim sampleValue As String
balloon1.Callback = sampleValue
Property Callback() As String
string Callback {get; set;}
property String^ Callback{
String^ get();
Void set(String^);
}
public System.String get_Callback();
public void set_Callback(System.String);
function get Callback() : String;
function set Callback(String);
The procedure you specify for the Callback property must be written to receive either two or three arguments, depending on what you use the property with. If you use the Callback property with a wizard, you must write the procedure to receive two arguments: a long integer that represents the MsoBalloonButtonType value of the button that the user clicked, and a long integer that uniquely identifies the balloon. If you use the Callback property with a modeless balloon, you must write the procedure to receive three arguments: the Balloon object that called the procedure; a long integer that represents the msoBalloonButtonType value of the button the user clicked; and a long integer that uniquely identifies the balloon that called the procedure, as denoted in the balloon’s Private property.
The callback procedure must contain at least one condition under which the Close method is applied to the Balloon object that is passed to it; otherwise, the modeless balloon cannot be dismissed.
If you specify a procedure that is stored in a separate class module, you must include the module name in the value assigned to the Callback property (for example, "Sheet1.MyCallback).
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000