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
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