CreateDataSource Method Example
This example creates a new data source document named "Data.doc" and attaches the data source to the active document. The new data source includes a five-column table that has the field names specified by the HeaderRecord argument.
ActiveDocument.MailMerge.CreateDataSource _
Name:="C:\My Documents\Data.doc", _
HeaderRecord:="Name, Address, City, State, Zip"