Share via


Application.Assistant Property

Publisher Developer Reference

Returns an Office.Assistant object that represents the Microsoft Office Assistant.

Syntax

expression.Assistant

expression   A variable that represents an Application object.

Return Value
Assistant

Remarks

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

Example

This example displays the Office Assistant.

Visual Basic for Applications
  Sub ShowAssistant()
    Assistant.Visible = True
End Sub

This example moves the Office Assistant to the upper-left corner of the screen and displays a custom message in a balloon.

Visual Basic for Applications
  Sub ShowAssistantUpperLeft()
    Dim blnAssistant As Balloon
With <strong>Assistant</strong>
    Set blnAssistant = .NewBalloon

    'Moves the Office Assistant
    .Move xLeft:=100, yTop:=100

        'Sets and displays a message with the Office Assistant
        With blnAssistant
            .Mode = msoModeAutoDown
            .Text = "What may I do for you today?"
            .Button = msoButtonSetTipsOptionsClose
            .Show
        End With

End With

End Sub

See Also