This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub FixLinks() | |
Dim wks As Worksheet | |
Dim hl As Hyperlink | |
Dim sOld As String | |
Dim sNew As String | |
Set wks = ActiveSheet | |
sOld = "G:\MyOriginalFolderIWantToReplaceInPath\" | |
sNew = ".\" | |
For Each hl In wks.Hyperlinks | |
hl.Address = Replace(hl.Address, sOld, sNew) | |
Next hl | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment