Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8024521
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T22:53:32+00:00 2026-06-04T22:53:32+00:00

I would like a macro or method to find and replace instance of a

  • 0

I would like a macro or method to find and replace instance of a word in a large word document with a hyperlink who’s display text is the same as the original word.

Example:
I would search for ‘project’ and replace all instances with a hyperlink http://www.example.com with the display text remaining ‘project’.

I have found many macros that are tantalisingly close but not quite what I need. For example, a macro from this site

How to programmatically edit all hyperlinks in a Word document?

..will change all the hyperlink addresses in a document and their display text. I thought I could change all the instances of ‘project’ to a hyperlink using inbuilt find and replace, then use that macro to change the display text. However, the inbuilt find and replace function does not create hyperlinks, you have to move the cursor to the unlinked text and press space/enter to activate it. That’s not viable in a large document.

To be really persnickety, it would be amazing if it only changed normal body text rather than all text, so I could leave headings and headers unchanged. I imagine this is possible by using the inbuilt find and replace to replace only normal text, then a macro to add the hyperlinks, perhaps.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T22:53:33+00:00Added an answer on June 4, 2026 at 10:53 pm

    1.Select the hyperlink and press Ctrl+C. This copies the hyperlink to the Clipboard.(might need to create 1 hyperlink to copy)

    2.Press Ctrl+H to display the Replace tab of the Find and Replace dialog box.

    3.In the Find What box, enter the string/word you want to replace.

    4.In the Replace With box, enter ^c.

    5.Click Replace All.

    not a macro but works.
    You can record this as a macro then you’ll have the macro you are after.

    Using the formatting option to select only the formatting style you want to replace.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to copy a macro from one Excel workbook to another using
I would like to know how to write a Macro to copy the value
I have an application that used Macro. In this macro I would like to
I need a definition for a macro-like string in php which would literally be
I can use __LINE__ as a method parameter just fine, but I would like
I have a shoulda macro/method that tests controller responses for XPath conditions like so:
I would like to display some log messages when debugging. One option is to
I would like to export some macros that I have defined and be able
I would like start with .NET Micro Framework as my hobby project. What hardware
Would like to parse IPv4 address from exit-addresses . Format of the file: ExitNode

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.