Q
Q
Qairat2017-01-30 20:10:22
excel
Qairat, 2017-01-30 20:10:22

How to bulk change all hyperlinks in excel?

Hi all!
Such situation. There is such file:
3435c9b13c3c427095e62dcef46e96f6.JPG
And everywhere on hyperlinks the word parsing/Licenses/Details/ and the value is written.
d706d3e891f64af4b71413c5d556bf44.JPG
Now I need to change the word parsing to another word there.
How can you do it everywhere?
Help.
There are more than 20 thousand lines.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Saboteur, 2017-01-30
@Qairat

Alt+F11

Sub FixLinks()
    Dim hLink As Hyperlink
    Dim sOld As String
    Dim sNew As String

    sOld = "http://parsing"
    sNew = "http://newsite"
    
    For Each hLink In ActiveSheet.Hyperlinks
        hLink.Address = Replace(hLink.Address, sOld, sNew)
    Next hLink
End Sub

execute

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question