Reply
 
Thread Tools Display Modes
  #1   Report Post  
Timvdv
 
Posts: n/a
Default Relative path in LINK field ?

I use LINK fields in Word to get data from Excel.
In the LINK fields I have to specify the filename of the excel file as the
data source.
Unfortunately Word uses the full pathname to this file in the Field Code :

{ LINK Excel.Sheet.8 "c:\\User\\temp\\test\\Data.xls" "Sheet1!R2C2" \a \t }

For me this is a problem, I would like to mail both the Document and the
Excel file to other people, and I have no control over where they will save
it.

Is there a way to use relative paths in the LINK field instead of absolutes
paths ?
If I put both the .doc file and the .xls file in the same folder, can I make
this work somehow ?

Thank you,
Timvdv
  #2   Report Post  
Cindy M -WordMVP-
 
Posts: n/a
Default

Hi ?B?VGltdmR2?=,

Is there a way to use relative paths in the LINK field instead of absolutes
paths ?

No, there definitely is not. Link fields do not support relative paths.

If I put both the .doc file and the .xls file in the same folder, can I make
this work somehow ?

You can create a custom document property and use a DocProperty field in place
of the path in the Link field. Then the user need only change the path in one
place, and update the fields.

Or, you could use an AutoOpen macro to check the path of the current document,
then write that path to the Link field codes.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)

  #3   Report Post  
Timvdv
 
Posts: n/a
Default

Thank you.
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
hyperlink changes address from absolute path to relative tnybecker Microsoft Word Help 2 January 7th 05 08:35 AM
link field / forms Lisa Microsoft Word Help 2 December 30th 04 09:35 PM
how to make a relative path in a hyperlink in a word-html file? Word Hyperlinks Microsoft Word Help 1 December 15th 04 02:31 PM
Text Form Field Ref in Footer Won't Update on Screen StarWine Microsoft Word Help 3 December 6th 04 06:17 PM
Add support for relative path names in master documents Alex Microsoft Word Help 1 November 25th 04 10:43 AM


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