Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 05-09-2016, 03:57 PM
macropod's Avatar
macropod macropod is offline Convert Hyperlinks to ahref Windows 7 64bit Convert Hyperlinks to ahref 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

Try:
Code:
Sub HyperlinkToHRef()
Application.ScreenUpdating = False
With ActiveDocument
  While .Hyperlinks.Count > 0
    With .Hyperlinks(1)
      .Range.InsertAfter "<a href=""" & .Address & """>" & .TextToDisplay & "</a>"
      .Range.Delete
    End With
  Wend
End With
Application.ScreenUpdating = True
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert Hyperlinks to ahref Convert html links into embedded hyperlinks njcloud Mail Merge 23 02-04-2020 02:00 PM
Word 2013's "File > Convert" only partly converts some Hyperlinks RichardDavey Word 0 05-27-2015 10:37 AM
Hyperlinks in PP ArtemMetr PowerPoint 2 03-20-2015 01:57 AM
Convert Hyperlinks to ahref PDF hyperlinks banccard Word 1 12-22-2011 08:45 PM
hyperlinks forrestgump Word 0 12-30-2010 04:14 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:00 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft