Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-09-2019, 02:35 PM
macropod's Avatar
macropod macropod is offline Flagging Hyperlinks using search & replace? Windows 7 64bit Flagging Hyperlinks using search & replace? Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,514
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

You could do a Find/Replace with:
Find = empty
Replace = <HL>^&<\HL>
specifying the Hyperlink Style for the Find parameter. This adds the <HL> & <\HL> tags to the hyperlinks, though.

Alternatively, if you press Alt-F9 to expose Word's field coding, you could do a Find/Replace with:
Find = ^d HYPERLINK
Replace = <HL>^&<\HL>


Press Alt-F9 again when you're done.

No macros required.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #2  
Old 05-09-2019, 03:09 PM
Ambreville Ambreville is offline Flagging Hyperlinks using search &amp; replace? Windows 10 Flagging Hyperlinks using search &amp; replace? Office 2013
Novice
Flagging Hyperlinks using search &amp; replace?
 
Join Date: May 2019
Posts: 6
Ambreville is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
You could do a Find/Replace with:
Find = empty
Replace = <HL>^&<\HL>
specifying the Hyperlink Style for the Find parameter. This adds the <HL> & <\HL> tags to the hyperlinks, though.

Alternatively, if you press Alt-F9 to expose Word's field coding, you could do a Find/Replace with:
Find = ^d HYPERLINK
Replace = <HL>^&<\HL>
Press Alt-F9 again when you're done.

No macros required.
This doesn't seem to work. If I don't put anything in the Find box, then the search cannot occur.

--------------------------

Edit --Never mind. It does work when I enter the style formatting for the hyperlink in the FIND box. The resulting HL bits are searchable later on, so that does solve the issue. Thanks!
Reply With Quote
Reply

Tags
conversion, hyperlink, search and replace



Similar Threads
Thread Thread Starter Forum Replies Last Post
Flagging Hyperlinks using search &amp; replace? Search and replace hernans Word VBA 5 07-02-2018 07:01 PM
Search and Replace puzzle grantworth Word 3 04-07-2015 05:32 AM
Flagging Hyperlinks using search &amp; replace? search and replace dirkoo Word VBA 2 08-14-2013 11:25 AM
Search and Replace - Clear Search box JostClan Word 1 05-04-2010 08:46 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:44 AM.


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