Dial Method

Microsoft Outlook Visual Basic

Dial Method

       

Displays the New Call dialog box that allows users to dial the primary phone number of a specified contact.

expression.Dial(ContactItem)

expression   Required. An expression that returns a NameSpace object.

ContactItem  Optional Variant. The Contactitem object of the contact you want to dial.

Example

The following example opens the New Call dialog box.

Sub DialContact()
'Opens the New Call dialog

    Dim olApp As Outlook.Application

    Set olApp = Outlook.Application
    olApp.GetNamespace("Mapi").Dial

End Sub

The following example opens the New Call dialog box with the Contact's information.

Sub DialContact()
'Opens the New Call dialog with the contact info

    Dim olApp As Outlook.Application
    Dim objContact As ContactItem

    Set olApp = Outlook.Application
    Set objContact = olApp.GetNamespace("Mapi"). _
     GetDefaultFolder(olFolderContacts).Items("Jeff Smith")
    olApp.GetNamespace("Mapi").Dial objContact

End Sub