Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.vba,microsoft.public.word.vba.general,microsoft.public.word.vba.customization,microsoft.public.word.docmanagement
[email protected] lbrtchx@hotmail.com is offline
external usenet poster
 
Posts: 1
Default walking through all hyperlinks in a word ".doc" or ".rtf" document

I think VBA Object language for Word considers hyperlinks to be
objects, so, there should be a way to programmatically load an array
with and/or replace all hyperlinks in a document
~
This is very useful to consolidate documents. Say you know of a
number of web pages with important embedded content links that you
would like to expand after pasting them on a document for later
reading/studying
~
How could you do that?
~
I searched for an answer and the closer I got was this:
~
// __ microsoft.public.word.docmanagement: "how to delete white
background color of Wikipedia"
Newsgroups: microsoft.public.word.docmanagement
From: "Suzanne S. Barnhill"
Date: Sat, 8 Jul 2006 10:39:42 -0500
Local: Sat, Jul 8 2006 11:39 am
Subject: how to delete white background color of Wikipedia

This Replace operation should do the trick:

1. Press Alt+F9 to toggle field codes so that your hyperlinks are
displaying as { HYPERLINK "http://... }

2. Press Ctrl+H to open the Replace dialog.

3. In the "Find what" box, type "^19 HYPERLINK" (without the
quotation marks).

4. In the "Replace with" box, type "^&" (without the quotation
marks).

5. Click More to expand the dialog. Click back in the "Replace with"
box.

6. Click on Format, then Style. Select "Default Paragraph Font."

7. Replace All.

8. Alt+F9 to toggle back to display of field results.

This will remove the Hyperlink character style, leaving the
hyperlinks still active.
--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
~
Thanks
lbrtchx

  #2   Report Post  
Posted to microsoft.public.word.vba,microsoft.public.word.vba.general,microsoft.public.word.vba.customization,microsoft.public.word.docmanagement
Jonathan West Jonathan West is offline
external usenet poster
 
Posts: 25
Default walking through all hyperlinks in a word ".doc" or ".rtf" document


wrote in message
oups.com...
I think VBA Object language for Word considers hyperlinks to be
objects, so, there should be a way to programmatically load an array
with and/or replace all hyperlinks in a document


You can. The Document object has a Hyperlinks collection.

~
This is very useful to consolidate documents. Say you know of a
number of web pages with important embedded content links that you
would like to expand after pasting them on a document for later
reading/studying
~
How could you do that?


I'm not entirely sure what you are asking. Are you wanting to replace all
links with the content of the linked pages?



--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup

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
What does "char" "char1" "char2" mean in styles in Word? Li Microsoft Word Help 2 September 5th 07 03:22 PM
Word 2007 view defaults to "Thumbnails" rather than "Document Map" Bruggie Microsoft Word Help 1 March 1st 07 08:19 PM
eliminate "copy" of "saved as" document showing up in file list Kaboodle Microsoft Word Help 2 February 14th 07 11:06 AM
Word: 'track changes": have "changed by" rather "del." and "inser Wouter Microsoft Word Help 0 October 26th 06 10:04 AM
The "Symbol" under "Insert" disappeared and replaced by "Number" Eling Microsoft Word Help 3 September 13th 06 03:29 PM


All times are GMT +1. The time now is 04:46 AM.

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"