Hi, wonder if anyone can help please. I have a workbook that has individual Hyperlinks that open up various drawaings. There are in excess of 10,000 drawings and all links worked fine unitl the company replaced my Laptop and all the previous link addresses lost their correct address path and all have defaulted to my C:\ drive. I have changed the names for business reasons but this is the macro i'm running. Grateful for any help?
Sub FixHyperlinkz()
Dim wks As Worksheet
Dim hl As Hyperlink
Dim sOld As String
Dim sNew As String
Set wks = ActiveSheet
sOld = "c:\Users\shared\Drawing office\"
sNew = "\\Original address\shared\Drawing Office\"
For Each hl In wks.Hyperlinks
hl.Address = Replace(hl.Address, sOld, sNew)
Next hl
Sub FixHyperlinkz()
Dim wks As Worksheet
Dim hl As Hyperlink
Dim sOld As String
Dim sNew As String
Set wks = ActiveSheet
sOld = "c:\Users\shared\Drawing office\"
sNew = "\\Original address\shared\Drawing Office\"
For Each hl In wks.Hyperlinks
hl.Address = Replace(hl.Address, sOld, sNew)
Next hl