Replace generic hyperlink text with value from table

simmitop

New Member
Joined
May 8, 2014
Messages
5
Hello all,
we have a document management system that exports data in the format shown in the picture.

I need to batch replace the generic "Locator URL" hyperlink texzt with the actual name of the file.

Is this possible at all?
 

Attachments

  • 2024-08-21 08_30_34-Window.png
    2024-08-21 08_30_34-Window.png
    3.7 KB · Views: 12

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
This little macro will scan through all hyperlinks on a sheet and place their target addresses to the right of the cell containing the link and in the adjacent column it will also add the HYPERLINK formula to recreate the link:

VBA Code:
Sub DisplayHyperlinkAddresses()
    Dim lnk As Hyperlink
    For Each lnk In ActiveSheet.Hyperlinks
        lnk.Range.Offset(, 1).Value = lnk.Address
        lnk.Range.Offset(, 2).Formula = "=HYPERLINK(""File:""&" & lnk.Range.Offset(, 1).Address(False, False) & ")"
    Next
End Sub
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,219
Members
452,619
Latest member
Shiv1198

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top