Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Pippalong
 
Posts: n/a
Default collecting together hyperlinks in word document

I want to collect together a large number of hyperlinks to use in a
"sources" section of a report.
I have used a style sheet and hyperlinks appear in the style sheet, but
unlike all my other styles I cannot select all other similar hyperlinks - it
only ever says there is the one formatted item in the hyperlink style,
whichever hyperlink I click on and try to collect.


  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Doug Robbins - Word MVP
 
Posts: n/a
Default collecting together hyperlinks in word document

Use the following code to insert a copy of them at the end of the document:

Dim hlink As Field, hrange As Range

For Each hlink In ActiveDocument.Fields
If hlink.Type = wdFieldHyperlink Then
Set hrange = hlink.Code
ActiveDocument.Range.InsertAfter Mid(hrange, 13, Len(hrange) - 14) &
vbCr
End If
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

"Pippalong" wrote in message
...
I want to collect together a large number of hyperlinks to use in a
"sources" section of a report.
I have used a style sheet and hyperlinks appear in the style sheet, but
unlike all my other styles I cannot select all other similar hyperlinks -
it
only ever says there is the one formatted item in the hyperlink style,
whichever hyperlink I click on and try to collect.




  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Pippalong
 
Posts: n/a
Default collecting together hyperlinks in word document

Thanks.
I guess this is using Word as I haven't before. How and where do I put these
codes?


"Doug Robbins - Word MVP" wrote:

Use the following code to insert a copy of them at the end of the document:

Dim hlink As Field, hrange As Range

For Each hlink In ActiveDocument.Fields
If hlink.Type = wdFieldHyperlink Then
Set hrange = hlink.Code
ActiveDocument.Range.InsertAfter Mid(hrange, 13, Len(hrange) - 14) &
vbCr
End If
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

"Pippalong" wrote in message
...
I want to collect together a large number of hyperlinks to use in a
"sources" section of a report.
I have used a style sheet and hyperlinks appear in the style sheet, but
unlike all my other styles I cannot select all other similar hyperlinks -
it
only ever says there is the one formatted item in the hyperlink style,
whichever hyperlink I click on and try to collect.





  #4   Report Post  
Posted to microsoft.public.word.docmanagement
Doug Robbins - Word MVP
 
Posts: n/a
Default collecting together hyperlinks in word document

See the article "What do I do with macros sent to me by other newsgroup
readers to help me out?" at:

http://www.word.mvps.org/FAQs/Macros...eateAMacro.htm


--
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

"Pippalong" wrote in message
...
Thanks.
I guess this is using Word as I haven't before. How and where do I put
these
codes?


"Doug Robbins - Word MVP" wrote:

Use the following code to insert a copy of them at the end of the
document:

Dim hlink As Field, hrange As Range

For Each hlink In ActiveDocument.Fields
If hlink.Type = wdFieldHyperlink Then
Set hrange = hlink.Code
ActiveDocument.Range.InsertAfter Mid(hrange, 13, Len(hrange) -
14) &
vbCr
End If
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

"Pippalong" wrote in message
...
I want to collect together a large number of hyperlinks to use in a
"sources" section of a report.
I have used a style sheet and hyperlinks appear in the style sheet, but
unlike all my other styles I cannot select all other similar
hyperlinks -
it
only ever says there is the one formatted item in the hyperlink style,
whichever hyperlink I click on and try to collect.







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
take yet another lesson from wordperfect "reveal codes" wordperfect is superior Microsoft Word Help 5 May 11th 09 07:58 PM
Word 2003 [email protected] Microsoft Word Help 39 April 19th 06 06:35 PM
Does Word have a QuickCorrect/Quick Word option like WordPerfect? CW New Users 2 December 20th 05 05:54 PM
How do I set right and left alignment on the same line in Word? Matador Page Layout 1 November 9th 05 08:32 PM
In Word, how can I see all files (*.*) in "save as"? citizen53 New Users 8 April 4th 05 04:56 PM


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