Re: Can I export hyperlinks from a word document to a simple list?

Tech-Archive recommends: Speed Up your PC by fixing your registry



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" <true@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:BD4D33B6-2E31-4803-AF5B-47454237B592@xxxxxxxxxxxxxxxx
>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?


.



Relevant Pages

  • Re: Saving hyperlinked documents to a specified folder
    ... ' Define backup target file path. ... I want to open a document from the LAN loaded with hyperlinks to other documents nested in subfolders below. ... Create a folder on my C drive which name mimics that of the active document. ...
    (microsoft.public.word.vba.beginners)
  • Re: Hyper link removal
    ... I'm confused as to why you say Matt's original suggestion doesn't ... > delete every hyperlink object of active document ... only the first of 5 hyperlinks are deleted when I click Run, in Script ...
    (microsoft.public.mac.office.word)
  • Saving hyperlinked documents to a specified folder
    ... I want to open a document from the LAN loaded with hyperlinks to other documents nested in subfolders below. ... Create a folder on my C drive which name mimics that of the active document. ... ' Define backup target file path. ...
    (microsoft.public.word.vba.beginners)
  • Re: hyperlinks in a doc
    ... it does not substitute for a paragraph break. ... and "return to the TOC" links that just go back to the top. ... > In all cases but one, the hyperlinks go to the first page of a section. ... The first page of each section has a Header 1 ...
    (microsoft.public.word.docmanagement)
  • Re: Fields are nested too deeply in a simple macros
    ... Hyperlinks collection by removing items from it. ... A Paragraph is a container ... It does not appear unless you call the Help from the VBA Editor ... do not know the way this 'for each item in collection do' construction works. ...
    (microsoft.public.mac.office.word)