+ Reply to Thread
Results 1 to 4 of 4

Mail Merge Directory - Creating merge with multiple lines

  1. #1
    Registered User
    Join Date
    05-09-2012
    Location
    Thunder Bay, Ontario
    MS-Off Ver
    Excel 2016
    Posts
    24

    Mail Merge Directory - Creating merge with multiple lines

    Not sure if this belongs in another section or if it has been answered, if it has please link me.

    I am trying to create a mail merge with multiple lines and everything I am reading says to use the mail merge set up as a directory but it is still pulling all lines of data into individual letters.

    I have 3 columns: Name, Section Chair, Results.
    I want a letter addressed to each Section Chair with the list of names and results. Some Section chairs have 1 line, some have 2, 3, 4, 5, and so on. How do I set up the mail merge to include all the information for each section chair in one letter.

    I want it to look like this:

    Dear "Section Chair",

    "Name - Results"
    "Name - Results"

    Thanks in advance!

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,957

    Re: Mail Merge Directory - Creating merge with multiple lines

    You will have to "unnormalize" the data to make it work with mail merge. That is, you have to string it out like this.

    Then in the mail merge you can have fields like
    Please Login or Register  to view this content.
    There is an option in Word mail merge to not print blank data, so if you don't have a Chair5 and Res5, they won't print. I just thought of something - because of the dash, the line will print, so you can combine them into a single entity containing the dash.

    To convert from what you have to the strung out format will take some VBA code. If you are interested, you will need to provide a sample workbook.

    The pictures below show your data format and the format the data needs to be in.
    Attached Images Attached Images
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Registered User
    Join Date
    05-09-2012
    Location
    Thunder Bay, Ontario
    MS-Off Ver
    Excel 2016
    Posts
    24

    Re: Mail Merge Directory - Creating merge with multiple lines

    This is what I was trying to avoid. I do not want to manipulate the data.

    I found instructions online on how to do what I need using the mail merge as a directory using codes in the merge fields but I don't understand code and it isn't working properly.

    I am attaching an image of the code I was given to write into the word document, but like I said it is not working and I don't understand it to fix it.

    Capture.PNG

  4. #4
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,957

    Re: Mail Merge Directory - Creating merge with multiple lines

    In that case, I suggest you ask the question in the Word forum. I've found Word fields to be confusing at best.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Running Word Mail Merge from Excel 2010 - Mail Merge workbook fails
    By pl05.lau@gmail.com in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-05-2015, 07:35 AM
  2. Replies: 3
    Last Post: 10-14-2014, 11:33 AM
  3. Directory Mail Merge - combining multiple clients..?
    By RossInk in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-02-2014, 11:28 AM
  4. Replies: 0
    Last Post: 12-14-2012, 02:01 PM
  5. Mail merge with multiple lines of data in excel to feed one Word doc
    By gaucher2013 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-12-2012, 02:57 PM
  6. Replies: 2
    Last Post: 07-12-2012, 08:11 PM
  7. Mail Merge directory v2003
    By leaftye - ExcelForums.com in forum Excel General
    Replies: 2
    Last Post: 06-16-2005, 12:05 PM

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