+ Reply to Thread
Results 1 to 7 of 7

Mail merge - Number of records

  1. #1
    Registered User
    Join Date
    11-23-2009
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    4

    Mail merge - Number of records

    I have a excel inventory and use mail merge to print labels for the inventory.
    I print the same day I order parts so I filter by the column with the order quantity.
    I would like to print the number of labels for the quantities. (ie if I order 4 parts, print 4 labels)
    Is there a way to do this?

    I currently have 3 identical labels print (1 row) for each part. That is the average quantity I order.

  2. #2
    Registered User
    Join Date
    11-23-2009
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    4

    Mail Merge labels - Print quantity

    Follow up for a little clarity.
    How can I print multiple labels from the same line?

    Example
    Item Desctiption Quantity Price
    1 power supply 2 3.50
    2 Memory 3 24.50


    I would want to print these quantities.

  3. #3
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Mail merge - Number of records

    Hi,

    this is a tricky one. If you wanted to print always the same number of labels for each item, it would be easy. In Word, just remove the {next record} field in the labels that you want to duplicate.
    But the dynamic aspect of printing x labels where x is defined in a field in the dataset will be more complicated. The easiest approach might be to create the required number of duplicates as records in Excel and do a straight merge from that.

    So, now the question is: duplicate rows in Excel based on a number ...

    Maybe someone will pick this up, but I'll keep pondering it, too. Hang in there!

  4. #4
    Registered User
    Join Date
    11-23-2009
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Mail merge - Number of records

    Whew! Thank you for the reply. That is something to think about. I've been doing this for a while and have always wondered about this aspect. What if you want X number printed.
    I don't know of any higher math that can be done with those logical commands in the mail merge. Currently I just have one row print the same thing, then go to the next item on the next row. 3 of everything... So now I order 3 of everything! lol

  5. #5
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Mail merge - Number of records

    Hi again,

    I've done a little macro that will create a suitable list of records for the merge. The most important thing is that the sheet with the merge data is the first tab in the workbook, otherwise you may run into trouble with the merge,

    So, create a new, empty sheet in your workbook before Sheet1, then copy this macro into a code module, adjust the settings I've outlined in the comments, and give it a go.

    You could create a button in the sheet where you enter the items, so you click the button to run the macro. See attached.

    Please Login or Register  to view this content.
    let me know if this works for you!

    cheers
    Attached Files Attached Files

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Mail merge - Number of records

    heres an alternative based on number you aant in col A it simply repeats what you have to a new sheet with the rows added in as specified in col A of first sheet
    Please Login or Register  to view this content.
    from here
    http://www.mvps.org/dmcritchie/excel/mailmerg.htm
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  7. #7
    Registered User
    Join Date
    02-03-2021
    Location
    NB, Canada
    MS-Off Ver
    Excel
    Posts
    1

    Re: Mail merge - Number of records

    This was super helpful! Thank you!



    Quote Originally Posted by teylyn View Post
    Hi again,

    I've done a little macro that will create a suitable list of records for the merge. The most important thing is that the sheet with the merge data is the first tab in the workbook, otherwise you may run into trouble with the merge,

    So, create a new, empty sheet in your workbook before Sheet1, then copy this macro into a code module, adjust the settings I've outlined in the comments, and give it a go.

    You could create a button in the sheet where you enter the items, so you click the button to run the macro. See attached.

    Please Login or Register  to view this content.
    let me know if this works for you!

    cheers

+ 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