Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.word.oleinterop,microsoft.public.word.formatting.longdocs,microsoft.public.word.docmanagement
Jose Valdes Jose Valdes is offline
external usenet poster
 
Posts: 27
Default Using DOCPROPERTY in LINK field

I am writing a long manual in MS-Word 2003 that uses OLE links to MS-Excel
files. Here's an example of one of my links:

{ LINK Excel.Sheet.8 "{ DOCPROPERTY home_folder}RMS 2400\\Book
files\\Linked_files\\2400\\Section_2.doc\\RMS_2400 _Slip_Die.xls" "Body" \a
\f 0 \p }

In this example, please note that I use a custom document property,
"home_folder", to store the directory path to the Excel file,
"RMS_2400_Slip_Die.xls". The following example shows the link with the value
of the DOCPROPERTY:

{ LINK Excel.Sheet.8 "G:\\TRS_Engineering\\Operations manuals\\Work in
progress\\RMS 2400\\Book
files\\Linked_files\\2400\\Section_2.doc\\RMS_2400 _Slip_Die.xls" "Body" \a
\f 0 \p }

I thought I was pretty smart when I developed this plan, but Word has won
another round against me. ;-) Every time I update the previous link, Word
helpfully renames the directory path to the following:

{ LINK Excel.Sheet.8 "\\\\spencerroad1\\groups\\TRS_Engineering\\Operat ions
manuals\\Work in progress\\RMS 2400\\Book
files\\Linked_files\\2400\\Section_2.doc\\RMS_2400 _Slip_Die.xls" Body \a \f
0 \p }

The new directory path is correct and displays the Excel file as it should.
It does not, however, use the DOCPROPERTY. When it was time to move the word
file to another computer, I was hoping to change the DOCPROPERTY and
re-define all of these links. This plan has so far worked for the
INCLUDEPICTURE and INCLUDETEXT fields. Can I make it work with the LINK
field as well?


 
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
Using DOCPROPERTY in LINK field Jose Valdes Microsoft Word Help 9 April 9th 07 10:33 AM
Issue with DOCPROPERTY field inside LINK field [email protected] Microsoft Word Help 5 January 17th 07 02:49 PM
Link a Field to an Embedded Worksheet & have the link follow "save Drew Microsoft Word Help 1 October 6th 06 10:13 AM
docproperty - number formatting Indy Microsoft Word Help 1 August 8th 05 02:39 AM
DOCPROPERTY field : how can I put multiple paragrahs in 1 custom p Bruno Sanguinede Microsoft Word Help 3 July 5th 05 01:24 PM


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