EditMainDocument Method Example
This example attempts to activate the main document associated with the active data source document. If the main document isn't open, the Open dialog box is displayed, with a message in the status bar.
On Error GoTo errorhandler
Documents("Data.doc").MailMerge.EditMainDocument
errorhandler:
If Err = 4605 Then StatusBar = "Main document is not open"
Dialogs(wdDialogFileOpen).Show