Share via


NameSpace.Dial Method (Outlook)

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

Syntax

expression .Dial(ContactItem)

expression A variable that represents a NameSpace object.

Parameters

Name

Required/Optional

Data Type

Description

ContactItem

Optional

Variant

The ContactItem object of the contact you want to dial.

Example

The following Microsoft Visual Basic for Applications (VBA) example opens the New Call dialog box.

Sub DialContact() 
 
 'Opens the New Call dialog 
 
 Application.GetNamespace("MAPI").Dial 
 
End Sub

The following VBA example opens the New Call dialog box with the contact's information. To run this example, replace 'Jeff Smith' with a valid contact name.

Sub DialContact() 
 
 'Opens the New Call dialog with the contact info 
 
 Dim objContact As Outlook.ContactItem 
 
 
 
 Set objContact = Application.GetNamespace("MAPI"). _ 
 
 GetDefaultFolder(olFolderContacts).Items("Jeff Smith") 
 
 Application.GetNamespace("MAPI").Dial objContact 
 
 
 
End Sub

See Also

Concepts

NameSpace Object Members

NameSpace Object