Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
ikovy ikovy is offline
external usenet poster
 
Posts: 6
Default Microsoft Word - How To Get A List Of All Hyperlinked Files?

I'm trying to get a list of all the files a Microsoft Word document is
hyperlinked to. Is there a way to have Word generate or show a list of all
the files a Word document is hyperlinked to?

Thanks
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Jay Freedman Jay Freedman is offline
external usenet poster
 
Posts: 9,854
Default Microsoft Word - How To Get A List Of All Hyperlinked Files?

On Tue, 4 May 2010 14:50:01 -0700, ikovy
wrote:

I'm trying to get a list of all the files a Microsoft Word document is
hyperlinked to. Is there a way to have Word generate or show a list of all
the files a Word document is hyperlinked to?

Thanks


Use this macro (see http://www.gmayor.com/installing_macro.htm if
needed):

Sub ListHyperlinks()
Dim srcDoc As Document, destDoc As Document
Dim HL As Hyperlink

Set srcDoc = ActiveDocument
Set destDoc = Documents.Add

For Each HL In srcDoc.Hyperlinks
destDoc.Range.InsertAfter _
HL.TextToDisplay & vbTab & HL.Address & vbCr
Next

destDoc.Range.ConvertToTable
End Sub

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit.
  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Jay Freedman Jay Freedman is offline
external usenet poster
 
Posts: 9,854
Default Microsoft Word - How To Get A List Of All Hyperlinked Files?

On Tue, 4 May 2010 14:50:01 -0700, ikovy
wrote:

I'm trying to get a list of all the files a Microsoft Word document is
hyperlinked to. Is there a way to have Word generate or show a list of all
the files a Word document is hyperlinked to?

Thanks


Use this macro (see http://www.gmayor.com/installing_macro.htm if
needed):

Sub ListHyperlinks()
Dim srcDoc As Document, destDoc As Document
Dim HL As Hyperlink

Set srcDoc = ActiveDocument
Set destDoc = Documents.Add

For Each HL In srcDoc.Hyperlinks
destDoc.Range.InsertAfter _
HL.TextToDisplay & vbTab & HL.Address & vbCr
Next

destDoc.Range.ConvertToTable
End Sub

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit.
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
all Microsoft Word files are being saved as WordPad files intuito Microsoft Word Help 2 February 22nd 09 11:59 AM
Hyperlinked pdf files not opening using Word 2003 Puzzled Bob Microsoft Word Help 1 September 8th 06 01:25 PM
track hyperlinked files in word 2000 steph Microsoft Word Help 0 August 19th 05 08:36 PM
how do I convert abode acrobat files to microsoft word files? Richard Sims Microsoft Word Help 2 July 20th 05 05:09 AM
how do you convert wordperfect files into microsoft word files spanishcaravan18 Microsoft Word Help 1 June 28th 05 09:19 AM


All times are GMT +1. The time now is 04:43 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"