View Single Post
 
Old 10-18-2014, 01:35 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

It would have been helpful had you said you wanted to do that. Assuming these domain names are only in the hyperlinks, try:
Code:
Sub Demo()
Dim hLnk As Hyperlink
For Each hLnk In ActiveSheet.Hyperlinks
  With hLnk
    .Address = Replace(.Address, "domain.com", "xyzaddress.ca")
    .TextToDisplay = .Address
  End With
Next
End Sub
For anything else, you could use Find/Replace
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote