Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

Word - Changing hyperlinks to a particular Text

Jun 13, 2010 5:45PM PDT

I am using MS Word.
I want to convert all hyperlinks in a document to a particular text. For example: say there are 10 hyperlinks with text as
Google
Yahoo
Anything
Home
About Us
etc.

These all are hyperlinks along with other text. Now, I want to convert these hyperlinks into a particular text. i.e. a word.
like Google will change into a word say 'link'. Similarly, Yahoo will also change into 'link'.
Similarly, all links will change to a text 'link'.
How I can do so. I think it is possible using a Macro in VB.
Please help.

Discussion is locked

- Collapse -
Re: replacing hyperlinks
Jun 13, 2010 6:43PM PDT

Either do it manually, or write a VBA macro. What's your question?

Kees

- Collapse -
by VB macro
Jun 13, 2010 7:14PM PDT

I want to do it using a Macro. How can I do this by using this a macro.

- Collapse -
Programming a macro.
Jun 14, 2010 3:30AM PDT

1. Find tutorials or a book or a course about Word macro's for your version of Word.
2. Study it. Be sure to make the necessary assignments and excersizes to really master the language.
3. Write the macro.

Not really different from any other programming language.

Kees