Bonjour,
Dans son message, < Dennis > écrivait :
In this message, < Dennis > wrote:
| Yes, the extracted path name DOES use the double "\\"
| chars. (First thing I checked.)
|
It turns out you cannot create an EMBED field as you are trying to do:
From the Microsoft Office Online site:
{EMBED ClassName [Switches] }
Inserts an object created in another application that supports OLE (OLE: A
program-integration technology that you can use to share information between
programs. All Office programs support OLE, so you can share information
through linked and embedded objects.). Microsoft Word inserts the EMBED
field when you insert objects- such as Microsoft Excel worksheet objects- by
using the Object command (Insert menu), the Paste Special command (Edit
menu), or a toolbar (toolbar: A bar with buttons and options that you use to
carry out commands. To display a toolbar, click Customize on the Tools menu,
and then click the Toolbars tab.) button.
The EMBED field isn't available in the Field dialog box, and you cannot
manually insert the field. However, you can directly modify switches in an
existing EMBED field.
Instructions
ClassName
The name of the container application, such as Microsoft Excel. You cannot
modify this instruction.
Switches
\* MERGEFORMAT
Applies the sizing and cropping of the previous result to the new result. To
preserve previously applied sizing and cropping when you update the field,
don't delete this switch from the field.
Examples
The following field displays a Microsoft Graph object embedded (embed: To
insert information created in one program, such as a chart or an equation,
into another program. After the object is embedded, the information becomes
part of the document. Any changes you make to the object are reflected in
the document.) in a document:
{ EMBED MSGraph.Chart.8 \* MERGEFORMAT }
What you can try though is:
INCLUDETEXT
as in:
'_______________________________________
Set myField = WordDoc.Fields.Add(Range:=myRange, _
Type:=wdFieldEmpty, _
Text:="INCLUDETEXT " & extractedFilePath)
'_______________________________________
or add an OLE object,
as in:
'_______________________________________
myRange.InlineShapes.AddOLEObject ClassType:="Word.Document.8", _
FileName:=extractedFilePath, LinkToFile:=True, DisplayAsIcon:=False
'_______________________________________
--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site:
http://www.word.mvps.org