+ Reply to Thread
Results 1 to 12 of 12

Customizable mail merge

  1. #1
    Registered User
    Join Date
    12-28-2011
    Location
    Iceland
    MS-Off Ver
    Excel 2010
    Posts
    11

    Customizable mail merge

    Hi,

    I'm having a bit of a problem finding out a way to get mail merge to assist me, maybe I need to some VBA programming, maybe I can find a tailored fit or possible even a differential to using mail-merge.

    My problem:

    I have a list with 9.000 employees with about 1.500 different employees. Each employee has either A or B.

    What I want to do is send a letter to all the 1.500 different employers listing all their employees and whether they are A or B.

    So for example if this would be my data set:

    Name - Workplace - A/B
    John - Palace - A
    Smith - Warehouse - B
    Paul - Palace - B
    Ian - Bar - A
    Gregor - Warehouse - B
    Allen - Palace - A
    Steve - Garage - B
    Peter - Warehouse - B

    Then I want to form the following letters:

    Dear Palace,

    Your employees blabla
    John - A
    Paul - B
    Allen - A

    ;;;;;

    Dear Warehouse,

    Your employees blabla,
    Smith - B
    Paul - B
    Gregor - B
    Peter - B

    ;;;;;

    Dear Bar,

    Your eomployees blabla,
    Ian - A

    ;;;;;;

    Dear Garage,

    Your employees blabla,
    Steve - B


    ;;;;


    So I need to form 1.500 letters, one per each employer stating all of their employees, whether they are 1, 10 or 50.

    I have googled and googled and tried working through the mail merge setups both in Word and Excel and I'm simple clueless, anyone able to guide me in the correct path here?

    Regards,

  2. #2
    Forum Contributor Russell Dawson's Avatar
    Join Date
    03-01-2012
    Location
    Yorkshire, England
    MS-Off Ver
    2007
    Posts
    608

    Re: Customizable mail merge

    Why not sort by employer and m/m just the particular range for each employer?
    If I helped, please don't forget to add to my reputation. (click on the star below the post)

    If the problem is solved, please: Select Thread Tools (on top of your 1st post) -> Mark this thread as Solved.

    Failure is not falling down but refusing to get up.

  3. #3
    Registered User
    Join Date
    12-28-2011
    Location
    Iceland
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Customizable mail merge

    How would that work? Since the task is basically two-fold.

    First, mail-merge 1.500 different letters where I draft down each of the employers addresses, postal codes, a greeting etc.

    Secondly, I need to filter the employees down, i.e. in the Warehouse mail I need to include all the Warehouse employees and only the Warehouse employees.

    If I go that route wouldn't I end up making 9.000 letters, I.e., one per each employee, not one per each employer?

  4. #4
    Forum Contributor Russell Dawson's Avatar
    Join Date
    03-01-2012
    Location
    Yorkshire, England
    MS-Off Ver
    2007
    Posts
    608

    Re: Customizable mail merge

    If you sort by employer then cut and paste onto three different worksheets and then adapt the word doc accordingly.

  5. #5
    Registered User
    Join Date
    12-28-2011
    Location
    Iceland
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Customizable mail merge

    Cut and paste what onto three different sheets? Employer, Employee, A/B?

  6. #6
    Forum Contributor Russell Dawson's Avatar
    Join Date
    03-01-2012
    Location
    Yorkshire, England
    MS-Off Ver
    2007
    Posts
    608

    Re: Customizable mail merge

    Sorry, I meant a w/s per employer thinking there were only three. Is it 4? Upload your w/b.

  7. #7
    Registered User
    Join Date
    12-28-2011
    Location
    Iceland
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Customizable mail merge

    For that to work I would need 1500+ sheets since there are roughly 1.500 employers

    Unfortunately I can't upload the actual workbook since it includes sensitive information. It is however identical to the data set I described above.

    Any help much appreciated!

  8. #8
    Forum Contributor Russell Dawson's Avatar
    Join Date
    03-01-2012
    Location
    Yorkshire, England
    MS-Off Ver
    2007
    Posts
    608

    Re: Customizable mail merge

    Yes, sorry. I allowed myself to use the example rather than read your initial post. That's why I thought there were only 3 or 4 employers. I'll ask for further help for you.

  9. #9
    Forum Contributor Russell Dawson's Avatar
    Join Date
    03-01-2012
    Location
    Yorkshire, England
    MS-Off Ver
    2007
    Posts
    608

  10. #10
    Registered User
    Join Date
    12-28-2011
    Location
    Iceland
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Customizable mail merge

    Much appreciated!

  11. #11
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Customizable mail merge

    Hi gulli09

    Please attach a sample file that represents what you have. The structure of your attachment should be the same structure as your actual data. Any proprietary information should be changed.

    Include in the attachment any code you're currently using (whether it works or not) and, if appropriate, an "After" worksheet that demonstrates what you wish the output to be.

    To Attach a File:

    1. Click on Go Advanced
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the "Add Files"... button to locate your file for uploading.
    6. This will open a new window File Upload...Click "Select Files"
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the "Upload Files" button and wait until the file has uploaded.
    10. Click the "Done" Button.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  12. #12
    Registered User
    Join Date
    12-28-2011
    Location
    Iceland
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Customizable mail merge

    Unfortunately, basically all the data is sensitive, so I took a small portion of the sheet(it's 9000 names of employees and 1500 employers) and edited it all the names and addresses, however the look of the sheet is essentially the same.

    I haven't got any code, simply because I'm not sure if this is even possible and if so how to go about it, so I really just need to get a push in a direction which clarifies whether this is possible and if so, what would be the best way to pursue this

    Regards,
    Attached Files Attached Files

+ 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. Replies: 2
    Last Post: 01-22-2013, 11:37 AM
  2. Replies: 2
    Last Post: 07-12-2012, 08:11 PM
  3. Mail Merge Query - Format of Merge Fields in Word
    By carlosbourn in forum Excel General
    Replies: 2
    Last Post: 11-10-2007, 07:11 AM
  4. Replies: 0
    Last Post: 04-21-2006, 03:40 PM
  5. [SOLVED] merge with Word How can I get excel to mail merge zip codes plus 4 correctly?
    By Kathy at Sauder Feeds in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-30-2005, 07:05 AM

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