#1   Report Post  
Posted to microsoft.public.word.pagelayout
Jeannine Jeannine is offline
external usenet poster
 
Posts: 8
Default Links

I plan to email two documents: a word doc and an excel doc. the word doc
has links to the excel document.

Do I have to do anything special to keep these links working when I send it
by email?

Thanks, Jeannine


  #2   Report Post  
Posted to microsoft.public.word.pagelayout
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default Links

The links would only work if the path to the Excel file is the same on the
recipients machine as on your machine. They may therefore need a macro such
as the following if that is not the case:

' 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

"Jeannine" wrote in message
...
I plan to email two documents: a word doc and an excel doc. the word doc
has links to the excel document.

Do I have to do anything special to keep these links working when I send
it by email?

Thanks, Jeannine



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
Links Pammy Microsoft Word Help 1 May 8th 07 08:51 PM
toc with links srack Microsoft Word Help 6 March 29th 07 08:39 PM
Word2000 changes relative links to absolute links Patricio Page Layout 1 January 26th 06 10:25 PM
links Fred Microsoft Word Help 0 November 23rd 05 04:10 PM
Removing a group of hypertext links or all hypertext links in a document Terri Creagh Tables 5 November 9th 04 05:30 AM


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