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

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
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,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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