Invoking NewCall Dialog on Dbl-Click event

G

Guest

I want to invoke the Contact.NewCall dialog when the user double-clicks on
the location field in an appointment.
The macro would determine if the location is a phone number.
If it is a phone, then it would create a temporary contact and invoke the
MAPI.dial method (shown below) to invoke the NewCall dialog with the phone
number.

How can I capture the double-click event so I can invoke this process ?

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

Dim olApp As Outlook.Application
Dim objContact As Outlook.ContactItem

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

End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top