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
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.