SharePoint & Excel -Display full text of URL from Reclinks contained in an Excel Spreadsheet column

Anonymous
2022-12-13T00:14:45+00:00

Hi all,

I have a spreadsheet with 400 lines that has in one column links reclinks of emails created in SharePoint. I need to display the full text of each hyperlink.

I tried using this VBA in Excel, however it only displays the shortened reclink text.

Here is what is displayed when I use this VBA in Excel

This is what I would like to see (Column C is the most important)

Any advice is greatly appreciated. Thank you

Microsoft 365 and Office | Excel | For business | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

5 answers

Sort by: Most helpful
  1. Anonymous
    2022-12-13T01:54:48+00:00

    Hi CMK_485,

    Have you tried with "HL.SubAddress"

    ".SubAddress" returns or sets the location within the document associated with the hyperlink.

    Hope it helps.

    Best Regards,

    Snow Lu

    0 comments No comments
  2. Anonymous
    2022-12-13T04:04:59+00:00

    Hi Snow Lu,

    Thank you for your reply. I am sorry, I am no familiar with those terms. Do you mean I should use one or both in the VBA? If yes, could you please type out what I should put in the VBA, so I can copy and paste it into a new module? (I have very little experience with VBA)

    regards

    Carolyn

    0 comments No comments
  3. Anonymous
    2022-12-13T04:26:04+00:00

    Hi CMK_485,

    Add this function in vba, then =getadrs(A1). ---A1 is the cell with hyperlink.

    Let me know if you met any problem.


    Function GetAdrs(Rng)

    Application.Volatile True

    With Rng.Hyperlinks(1)

    GetAdrs = IIf(.Address = "", .SubAddress, .Address)

    End With

    End Function


    Could you share the screen of the hyperlink (Right click the cell - > edit Hyperlink)? If the full Reclink not here, you should manual add the full Reclink details.

    0 comments No comments
  4. Anonymous
    2022-12-13T04:49:32+00:00

    Thank you for your help. I have just been advised by a teammate that the hyperlink information is not required anymore. Bye for now and thank you again.

    0 comments No comments
  5. Anonymous
    2022-12-13T05:23:58+00:00

    Thanks for your updates. I will close this case.

    If you have any other questions, you can also post a new thread in our forum, and we will also try our best to help you.

    0 comments No comments