---------------
OpenDataSource Method
Syntax:
expression.OpenDataSource(Name, Format, ConfirmConversions, ReadOnly, LinkToSource, AddToRecentFiles, PasswordDocument, PasswordTemplate, Revert, WritePasswordDocument, WritePasswordTemplate, Connection, SQLStatement, SQLStatement1)
expression Required. An expression that returns a MailMerge object.
Name Required String. The data source file name. You can specify a Microsoft Query (.qry) file instead of specifying a data source, a connection string, and a query string.
Format Optional Variant. The file converter used to open the document. Can be one of the following WdOpenFormat constants: wdOpenFormatAllWord, wdOpenFormatAuto, wdOpenFormatDocument, wdOpenFormatEncodedText, wdOpenFormatRTF, wdOpenFormatTemplate, wdOpenFormatText, wdOpenFormatUnicodeText, or wdOpenFormatWebPages. The default value is wdOpenFormatAuto.
To specify an external file format, use the OpenFormat property with a FileConverter object to determine the value to use with this argument.
---------------
Can you tell me the format of the file you are using (Your node mentions "|" and "~" but I wasn't sure that this was the case)? I'll then try to create a working example.
C-.
In reply to Re: Win32:OLE and Word Mail Merge
by cacharbe
in thread Win32:OLE and Word Mail Merge
by Gerard
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |