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?
 

Bob C

Member
Outlook version
Outlook 2016 64 bit
Email Account
Exchange Server
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.
Thread starter Similar threads 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 Calendar Printing Assistant 0
J Printing Private Appointments on Caledar Printing Assistance Calendar Printing Assistant 2
I Can I get some assistance with Calendar Logging for Outlook 2010 Using Outlook 1
B Need assistance Sharing Calendars Using Outlook 1
T Would welcome assistance with setting default formatting to support preset paragraph spacing, or Sty Using Outlook 5
L Assistance Please Using Outlook 2
E Microsoftelearning Outlook 2007 Course #5437 step-by-step instructions not working for me. Request assistance to follow step-by-step 'demonstrati Using Outlook 2
E need assistance in setting up my outlook 2000 email account Using Outlook 2
L Assistance with old pst files Using Outlook 4
H Need assistance to end Recurring Appointment Using Outlook 6
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
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 New Slipstick.com Articles 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 New Slipstick.com Articles 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
T I'm unable to follow links from mail since 2010 upgrade any help appreciated__ Using Outlook 1
G Why can't I open links in emails that I receive? Using Outlook 2
I unable to open up web links that are inserted in emails Using Outlook 3
E Can no longer open URL links from within an email. Using Outlook 2
D Outlook 2007 crashes opening email with image links Using Outlook 4
B Unable to open links in email Using Outlook 1
P where can i store hyper links so that they aren't detected as a threat to the computer Using Outlook 2
T Clicking on links. Using Outlook 1
C I am unable to open web links in my Outlook mail. I get an error message that states: This function Using Outlook 1
J Opening links in email Using Outlook 2
J I Cannot open links on received e-mails, But I can open attachments Using Outlook 1
Similar threads


















































Top