I have a working Excel VBA code that replace hyperlink text in every sheet. Check the code below
' Only change Hyperlinks in the active sheet
Sub FixHyperlinks()
Dim wks As Worksheet
Dim hl As Hyperlink
Dim sOld As String
Dim sNew As String
Set wks = ActiveSheet
sOld = "%5C"
sNew = "/"
For Each hl In wks.Hyperlinks
hl.Address = Replace(hl.Address, sOld, sNew)
Next hl
End Sub
The problem is that the workbook have around 30 sheets!!
How can I make this macro run in all the sheets in the active workbook ?