agrafixx
asked on
Add contact name, phone, and address to subject when scheduling appointment
Hello,
I am using the below code to Add contact name, phone, and address to subject when scheduling appointments outlook. Would some please tell me how to put spaces or dases between each of the entries?
Sub MakeAppointment()
Dim olkAppointment As Outlook.AppointmentItem, _
olkContact As Outlook.ContactItem
Set olkContact = Application.ActiveExplorer .Selection .Item(1)
Set olkAppointment = Application.CreateItem(olA ppointment Item)
olkAppointment.Location = olkContact.BusinessAddress City
olkAppointment.Subject = olkContact.HomeTelephoneNu mber & olkContact.BusinessTelepho neNumber & olkContact.FullName & olkContact.HomeAddress & (olkContact.BusinessAddres s)
olkAppointment.Links.Add olkContact
olkAppointment.Display
Set olkContact = Nothing
End Sub
I am using the below code to Add contact name, phone, and address to subject when scheduling appointments outlook. Would some please tell me how to put spaces or dases between each of the entries?
Sub MakeAppointment()
Dim olkAppointment As Outlook.AppointmentItem, _
olkContact As Outlook.ContactItem
Set olkContact = Application.ActiveExplorer
Set olkAppointment = Application.CreateItem(olA
olkAppointment.Location = olkContact.BusinessAddress
olkAppointment.Subject = olkContact.HomeTelephoneNu
olkAppointment.Links.Add olkContact
olkAppointment.Display
Set olkContact = Nothing
End Sub
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.