Assistance with Deprecated .Links Property

Status
Not open for further replies.

Bob C

Member
Outlook version
Outlook 2016 64 bit
Email Account
Exchange Server
Ok. With some help from smart folks on here, I am slowly tracking down some longstanding issues with my outlook forms. My next (last?) hurdle is hot to replace a deprecated property in my script. Here is the section I need assistance with:

Sub cmdMakeAppt_Click()
Const olAppointmentItem = 1
Set objAppt = Application.CreateItem(olAppointmentItem)
If Item.Size = 0 Then
Item.Save ' must save item before adding link
End If
With objAppt
.RequiredAttendees = "person@123.com"
.Subject = "In Home Consultation with " & Item.FullName
.Location = Item.BusinessAddressStreet & " " & Item.BusinessAddressCity & " " & Item.BusinessAddressState & " " & Item.BusinessAddressPostalCode
.Start = Item.UserProperties("Consult Date").value
.Duration = 90
.Body = Item.UserProperties("DirectionsText") & vbCr & vbLf & Item.HomeTelephoneNumber & vbCr & vbLf & Item.MobileTelephoneNumber & vbCr & vbLf & Item.UserProperties("Consult Notes") & vbCr & vbLf & vbCr & vbLf & Item.UserProperties("Breed") & vbCr & vbLf & Item.UserProperties("Pet Name")
.Links.Add Item
End With
objAppt.Display
Set objAppt = Nothing
End Sub


It seems Microsoft deprecated the .Links property. This whole subroutine is supposed to, when a botton in clicked, add an appointment to my calendar. Can anyone assist with a replacement for the .Links property?
 
Actually, I have no idea what the .Links.Add Item did. I just deleted it, and now everything works as needed. I am sure it did something, but 15 years ago is a loooong time.

Thank you sooo so much for your help. This has been plaguing me for 2 years now.
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
A Wishlist Arthur workman I need the community's assistance thank you Using Outlook 3
M Outlook 2013 Script Assistance - Save Opened Link with Subject Added Outlook VBA and Custom Forms 1
A from Arthur to anyone I need your expertise assistance Using Outlook.com accounts in Outlook 7
G Outlook 2010 VBA Coding Assistance please! Outlook VBA and Custom Forms 5
D Assistance to create a mac that can move a msg based on category to spec fldr Using Outlook 1
J Printing Private Appointment Detail on Calendar Printing Assistance Using Outlook 0
J Printing Private Appointments on Caledar Printing Assistance Using Outlook 2
M Index / Search outlook data to provide search assistance in Ol 2003/ 2 Outlook VBA and Custom Forms 1
J Outlook 2007 Forms Assistance Outlook VBA and Custom Forms 3
L Location Unsafe Warning for Links Using Outlook 1
L Outlook attachments from OneDrive as links Using Outlook 0
A Links in email getting error message about group policy Using Outlook 4
J Outlook 365 Emails showing as links and text only Using Outlook 4
M Seeking PDF Recommendation for Outlook that retains links Using Outlook 7
e_a_g_l_e_p_i Outlook 2010 How to set default email address for website links Using Outlook 3
S Macro to extract and modify links from emails Outlook VBA and Custom Forms 3
G Recurring tasks break links Outlook 2016 Using Outlook 5
M Extract all links from Outlook email, send to Excel Using Outlook 2
G Detect Google Drive and OneDrive links in incoming mail Outlook VBA and Custom Forms 3
F How to create phone number as links in notes of Contacts Using Outlook 2
R New Links on Navigation Pane, How to Remove? Using Outlook 1
Diane Poremsky Using Outlook Links Using Outlook 0
J Outlook 2016 is killing me with object.links Outlook VBA and Custom Forms 2
C Saving Outlook attachments and links to attachments with VBA Outlook VBA and Custom Forms 2
Diane Poremsky Outlook Links Won't Open In Windows 10 Using Outlook 1
M Outlook 2013 conversation view ... missing links Using Outlook 3
W Add to Calendar links - auto accept with macro Using Outlook 1
L UserForm Code For Contact Links Using Outlook 76
R conerting links to images Using Outlook 3
S Question regarding contact links Exchange Server Administration 37
mrje1 mailto links in browsers don't open up outlook email Using Outlook 2
J links won't open from Outlook Using Outlook 1
P E-mail links Using Outlook 3
I Links not working after un-installing Google Chrome Using Outlook 2
S Embedded links Using Outlook 1
S Outlook 2010 Ribbon - Creating Links To Websites or EXE Files Using Outlook 4
L Links do not work in my e-mails Using Outlook 1
M Links prevent sending email Using Outlook 3
R Hyper links not working in forwards or replies Using Outlook 3
K Can't use links in Outlook custom form text field Outlook VBA and Custom Forms 1
J Unable to open links in Outlook mail Using Outlook 2
E How does BCM links items BCM (Business Contact Manager) 1
M Fixing broken Journal links to Contacts in Outlook 2007 Outlook VBA and Custom Forms 3

Similar threads

Back
Top