Skip to content

Latest commit

 

History

History
80 lines (41 loc) · 1.54 KB

Outlook.NameSpace.Dial.md

File metadata and controls

80 lines (41 loc) · 1.54 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
NameSpace.Dial method (Outlook)
vbaol11.chm774
vbaol11.chm774
Outlook.NameSpace.Dial
1fd29ed8-e983-c668-c48f-f642c56bfcd2
06/08/2017
medium

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

NameSpace Object

[!includeSupport and feedback]