Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
true
 
Posts: n/a
Default Can I export hyperlinks from a word document to a simple list?

I have a client-supplied document of over fifty pages with many, many links.
I need to place these links into a design (Quark) layout. Can I export all of
the links in the document into a simple listing rather than picking through
all the copy paragraph by paragraph to copy and paste links?
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Jezebel
 
Posts: n/a
Default Can I export hyperlinks from a word document to a simple list?

Run this code --

Sub Macro1

Dim pLink As Word.Hyperlink

For Each pLink In ActiveDocument.Hyperlinks
ActiveDocument.Content.InsertAfter pLink.Address & vbCr
Next

End Sub


This will insert a list of all the hyperlinks at the end of the document.
Then you can cut and paste from there.



"true" wrote in message
...
I have a client-supplied document of over fifty pages with many, many
links.
I need to place these links into a design (Quark) layout. Can I export all
of
the links in the document into a simple listing rather than picking
through
all the copy paragraph by paragraph to copy and paste links?



  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Doug Robbins - Word MVP
 
Posts: n/a
Default Can I export hyperlinks from a word document to a simple list?

Run a macro containing the following code when the document containing the
hyperlinks is the active document and it will create a new document
containing a list of the hyperlinks:

Dim source As Document, target As Document, hlink As Hyperlink

Set source = ActiveDocument
Set target = Documents.Add
For Each hlink In source.Hyperlinks
target.Range.InsertAfter hlink.Address & vbCr
Next hlink


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"true" wrote in message
...
I have a client-supplied document of over fifty pages with many, many
links.
I need to place these links into a design (Quark) layout. Can I export all
of
the links in the document into a simple listing rather than picking
through
all the copy paragraph by paragraph to copy and paste links?



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Word should catalog misspelled words to study. rndthought Microsoft Word Help 39 May 21st 23 02:47 AM
Word 97 in Windows XP to maintain formatting Charlie''s Word VBA questions Microsoft Word Help 22 May 20th 23 08:51 PM
Word 2003 [email protected] Microsoft Word Help 39 April 19th 06 06:35 PM
How do I create a Word form like corel WP merge documents? dlee_at_mmsgov Microsoft Word Help 2 October 8th 05 06:29 AM
Macros - Keyboard Commands Janet Microsoft Word Help 6 April 11th 05 05:28 AM


All times are GMT +1. The time now is 03:34 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"