A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Mailmerge
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Absolute links vs relative links in main merge document



 
 
Thread Tools Display Modes
  #1  
Old June 19th, 2008, 01:25 AM posted to microsoft.public.word.mailmerge.fields
TB
external usenet poster
 
Posts: 71
Default Absolute links vs relative links in main merge document

I have a very large document with multiple authors. I want to link to each
document part and later move the main document and all the parts to another
network, however, the hyperlinks are absolute instead of relative. How can I
change the links so they are relative?
--
TB
  #2  
Old June 19th, 2008, 09:32 AM posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP
external usenet poster
 
Posts: 8,239
Default Absolute links vs relative links in main merge document

In the document properties dialog, you can change the hyperlink base for the
main document

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

"TB" wrote in message
...
I have a very large document with multiple authors. I want to link to each
document part and later move the main document and all the parts to
another
network, however, the hyperlinks are absolute instead of relative. How can
I
change the links so they are relative?
--
TB



  #3  
Old June 19th, 2008, 07:44 PM posted to microsoft.public.word.mailmerge.fields
TB
external usenet poster
 
Posts: 71
Default Absolute links vs relative links in main merge document

I have tried this, but I must be thick. Does the hyperlink base have to
include the absolute path? I would prefer to include the main folder so
relative links will be associated to the folder only and not the entire path.
This way, I can move the main folder to another network. Please provide an
example of how the hyperlink base should be entered. Thank you.
--
TB


"Doug Robbins - Word MVP" wrote:

In the document properties dialog, you can change the hyperlink base for the
main document

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

"TB" wrote in message
...
I have a very large document with multiple authors. I want to link to each
document part and later move the main document and all the parts to
another
network, however, the hyperlinks are absolute instead of relative. How can
I
change the links so they are relative?
--
TB




  #4  
Old June 20th, 2008, 09:31 AM posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP
external usenet poster
 
Posts: 8,239
Default Absolute links vs relative links in main merge document

As an alternative, you could use the following code in a macro to update all
of the Hyperlinks in a document:

' 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

"TB" wrote in message
...
I have tried this, but I must be thick. Does the hyperlink base have to
include the absolute path? I would prefer to include the main folder so
relative links will be associated to the folder only and not the entire
path.
This way, I can move the main folder to another network. Please provide an
example of how the hyperlink base should be entered. Thank you.
--
TB


"Doug Robbins - Word MVP" wrote:

In the document properties dialog, you can change the hyperlink base for
the
main document

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

"TB" wrote in message
...
I have a very large document with multiple authors. I want to link to
each
document part and later move the main document and all the parts to
another
network, however, the hyperlinks are absolute instead of relative. How
can
I
change the links so they are relative?
--
TB






 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:18 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.