+ Reply to Thread
Results 1 to 4 of 4

DDE Connection failing

  1. #1
    Forum Contributor
    Join Date
    06-15-2009
    Location
    Ontario, canada
    MS-Off Ver
    Office 365
    Posts
    371

    DDE Connection failing

    I am having difficulty connecting my Excel database to my Word mail merge document via DDE.

    I go through all the steps to establish a connection via the mail-merge wizard.

    Document type: Directory
    Select starting document > Start from existing document > chose open to open "DT-WPE.dot"
    Select recipients > Use an existing list > Browse > "mailmerge.xls"
    Confirm data source > MS Excel Worksheets via DDE
    Named or cell range > "dderange" a named range in my workbook referring to CONTROL_1!$A:$EH

    Word in unable to merge because it states I have all invalid fields.

    This is not working for me. Could it be my range is not right? I'm trying to establish Columns A through EH as my range on worksheet CONTROL_1

    Thoughts?

  2. #2
    Forum Contributor
    Join Date
    06-15-2009
    Location
    Ontario, canada
    MS-Off Ver
    Office 365
    Posts
    371

    Re: DDE Connection failing

    OK ... I think I have found the problem. Despite named range "dderange" referencing worksheet "CONTROL_1", DDE is appears to be ignoring the named range and opting for the 10 unidentified columns of the first worksheet. Where am I in err?

  3. #3
    Forum Contributor
    Join Date
    06-15-2009
    Location
    Ontario, canada
    MS-Off Ver
    Office 365
    Posts
    371

    Re: DDE Connection failing

    I guess it doesn't matter about having the worksheet in the name. It's choosing the first worksheet. If I move the CONTROL_1 worksheet to sheet1 position, it works.

    Just the way things go I guess.

  4. #4
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: DDE Connection failing

    Hi Jenn,

    FWIW, mailmerges ordinarily shouldn't be run from a template - just from a mailmerge main document. If you use a template, you're liable to get two SQL prompts - one when the template initializes and another when the new document is created from it.
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1