View Single Post
 
Old 10-08-2013, 07:58 AM
Cosmo Cosmo is offline Windows Vista Office 2007
Competent Performer
 
Join Date: Mar 2012
Posts: 240
Cosmo is on a distinguished road
Default Application.Dialogs - Show mail merge 'Select Recipients" dialogs

I'm trying to build a custom scripted mail merge, and I want to display the dialogs at specific places to allow the user to select the data source:


The following seems to bring up the correct dialog when using an existing source:

application.dialogs(wdDialogMailMergeOpenDataSourc e).show

But, the dialogs to either create a new source (wdDialogMailMergeCreateDataSource) or use the contacts list (wdDialogMailMergeUseAddressBook) are not the same dialogs that are used by the 2007/2010 application when selected via the UI commands. The Address Book one in particular, doesn't allow selecting a contact list, but comes up with a dialog that says 'Recover Text from Any File'.

Is there a way to run this functionality from VBA? Unless I'm missing something, I don't see the methods in the document.mailMerge object to do so either.
Reply With Quote