Reply
 
Thread Tools Display Modes
  #1   Report Post  
Jim in Spokane
 
Posts: n/a
Default Find and replace 100 hyperlinks??

Need to change the path in over 100 hyperlinks in a word doc.

Anyway to use Find and Replace?

Thanks
Jim
  #2   Report Post  
garfield-n-odie
 
Posts: n/a
Default

Press Alt+F9 to display field codes, and then use Find and
Replace to replace the path.

Jim in Spokane wrote:

Need to change the path in over 100 hyperlinks in a word doc.

Anyway to use Find and Replace?

Thanks
Jim


  #3   Report Post  
Jim in Spokane
 
Posts: n/a
Default

Thanks!
the link is long:
http://region1.dshs.wa.gov/Headquart...FOCUS%20012403
Alt+F9 displays:
HYPERLINK "GAU Focus 2002 2003\\GAU Weekly FOCUS 021403.doc"

The path I need to edit is Headquartersdoc.

Find and Replace works only on the visible part of the hyperlink.

Any suggestions?



"garfield-n-odie" wrote:

Press Alt+F9 to display field codes, and then use Find and
Replace to replace the path.

Jim in Spokane wrote:

Need to change the path in over 100 hyperlinks in a word doc.

Anyway to use Find and Replace?

Thanks
Jim



  #4   Report Post  
Anne Troy
 
Posts: n/a
Default

File--Properties. Change the Hyperlink Base.
*******************
~Anne Troy

www.OfficeArticles.com
www.MyExpertsOnline.com


"Jim in Spokane" wrote in message
...
Thanks!
the link is long:

http://region1.dshs.wa.gov/Headquart...FOCUS%20012403
Alt+F9 displays:
HYPERLINK "GAU Focus 2002 2003\\GAU Weekly FOCUS 021403.doc"

The path I need to edit is Headquartersdoc.

Find and Replace works only on the visible part of the hyperlink.

Any suggestions?



"garfield-n-odie" wrote:

Press Alt+F9 to display field codes, and then use Find and
Replace to replace the path.

Jim in Spokane wrote:

Need to change the path in over 100 hyperlinks in a word doc.

Anyway to use Find and Replace?

Thanks
Jim





  #5   Report Post  
Doug Robbins
 
Posts: n/a
Default

' Macro created 26/10/01 by Doug Robbins to update links in a document
'
Dim alink As Field, linktype As Range, linkfile As Range
Dim linklocation As Range, i As Integer, j As Integer, linkcode As Range
Dim Message, Title, Default, Newfile
Dim counter As Integer



counter = 0
For Each alink In ActiveDocument.Fields
If alink.Type = wdFieldLink Then

Set linkcode = alink.Code
i = InStr(linkcode, Chr(34))
Set linktype = alink.Code
linktype.End = linktype.Start + i
j = InStr(Mid(linkcode, i + 1), Chr(34))
Set linklocation = alink.Code
linklocation.Start = linklocation.Start + i + j - 1
If counter = 0 Then
Set linkfile = alink.Code
linkfile.End = linkfile.Start + i + j - 1
linkfile.Start = linkfile.Start + i
Message = "Enter the modified path and filename following this
Format " & linkfile
Title = "Update Link"
Default = linkfile
Newfile = InputBox(Message, Title, Default)
End If
linkcode.Text = linktype & Newfile & linklocation
counter = counter + 1
End If
Next alink


--
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
"Jim in Spokane" wrote in message
...
Need to change the path in over 100 hyperlinks in a word doc.

Anyway to use Find and Replace?

Thanks
Jim



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
Find and Replace GREEK symbols in XP, 2K & 97 Jazz Microsoft Word Help 3 April 8th 05 08:13 PM
Problem with function "Find and Replace" in Word. Pat Microsoft Word Help 3 March 16th 05 01:04 PM
Find and Replace Michael R New Users 11 January 22nd 05 05:31 PM
Find and Replace anomaly BruceM Microsoft Word Help 7 January 18th 05 05:47 PM
find and replace symbols Tewodaj New Users 8 January 11th 05 02:22 AM


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