I am a complete novice in VBA.
I'm trying to replace a huge number of hyperlinks with a macro, but I get compile errors. Here is the sub
Sub ChangeLinks()
For x = 1 To Application.ActiveSheet.Hyperlinks.Count
Replace (Application.ActiveSheet.Hyperlinks(x).Address,"H:\Text\", "H:\Text\PG\")
Next x
End Sub
The compile error is 'Expected ='
Would you kindly tell me the correct way to change a substring in all hyperlinks with an
Bookmarks