MailMerge.EditDataSource Method 

Opens or switches to the mail merge data source.

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

Usage

Dim mailMerge1 As MailMerge
mailMerge1.EditDataSource()

Syntax

Sub EditDataSource()
void EditDataSource();
public: Void EditDataSource();
public void EditDataSource();
function EditDataSource();

Remarks

If the data source is a Microsoft Word document, this method opens the data source (or activates the data source if it's already open).

If Word is accessing the data through dynamic data exchange (DDE)— using an application such as Microsoft Excel or Microsoft Access— this method displays the data source in that application.

Dynamic data exchange (DDE) is an older technology that is not secure. If possible, use a more secure alternative to DDE.

If Word is accessing the data through open database connectivity (ODBC), this method displays the data in a Word document. Note that if Microsoft Query is installed, a message appears, providing the option to display Microsoft Query instead of converting data.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

MailMerge Interface
Microsoft.Office.Interop.Word Namespace

Other Resources

MailMerge Members