Macro to Extract URL from Hyperlink and Insert on New Line?

Z

zcrane

Hi All - I'm really hoping someone can help me with this one, as it wil
save a tremedous amount of time.

I have a few very lengthy documents that are in outline form. Scattere
throughout each of the documents are hyperlinks. I need to take the UR
that the hyperlink points to and paste it below the line containing th
hyperlink. For example:

Before -->
A3. Search Engines
a. One of the most popular - Google

After -->
A3. Search Engines
a. One of the most popular - Google
www.google.com

Where the "Google" text in the "before example" is a hyperlink t
www.google.com

Is there any way that I can acomplish this in Word 2010 via an automate
method?

Thank you in advance for the assistance. I greatly appreciate it
 
S

Stefan Blom

Is the linked text always in a separate paragraph (that is, you typed Enter
between the text lines in your example)? In that case, you should be able to use
a macro that goes through each paragraph, extracts the URL of any hyperlink
present, and adds it in a new paragraph below.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top