Hperlinks not working on other machines

V

Vipul Vashisht

I have created a word doc where there are several
hyperlinks to different doc files. I have put all files
including parent doc file and hyperlinked word docs in a
single folder and zipped it and mail to some friends but
hyperlinks are not working on any of my friends machines.
What to do?
Vipul
 
D

Doug Robbins - Word MVP - DELETE UPPERCASE CHARACT

Hi Vipul,

The surest thing would be to insert the other documents rather than to try
and rely on hyperlinks.

The problem is that the links are probably not pointing to the location in
which the files are located on your friends machines.

It's probably asking a bit too much of your friends, but you could give them
the following macro which would enable them to update the hyperlinks to the
location in which they have the files:

' 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


Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top