Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-23-2024, 06:30 AM
hunt3006 hunt3006 is offline Excel to Word - Many to One Mail Merge - Help! Windows 11 Excel to Word - Many to One Mail Merge - Help! Office 2021
Novice
Excel to Word - Many to One Mail Merge - Help!
 
Join Date: Apr 2024
Posts: 1
hunt3006 is on a distinguished road
Default Excel to Word - Many to One Mail Merge - Help!

I have exhausted too much time on this and I need help, please.



I am trying to get the data from the excel into word via mail merge. Each page on the mail merge should be for each unique ship-to. I want to each page to show all orders for that customer: Purchase Order, Product #, Product Description, Order Qty, and Order Price.

I have attached the excel data and the word document table.

Thanks in advance.
Attached Files
File Type: docx Sample Letter.docx (35.0 KB, 2 views)
File Type: xlsx Mail Merge Data.xlsx (73.8 KB, 2 views)
Reply With Quote
  #2  
Old 04-23-2024, 07:59 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Excel to Word - Many to One Mail Merge - Help! Windows 10 Excel to Word - Many to One Mail Merge - Help! Office 2021
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,780
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Also posted at Excel to Word - Many to One Mail Merge - Help! | Chandoo.org Excel Forums - Become Awesome in Excel
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #3  
Old 04-23-2024, 04:38 PM
macropod's Avatar
macropod macropod is online now Excel to Word - Many to One Mail Merge - Help! Windows 10 Excel to Word - Many to One Mail Merge - Help! Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

The simplest way would be to add a worksheet to your workbook, with that sheet containing just the customer IDs (one per customer), then use a DATABASE field in your mailmerge main document. This is described in the Microsoft Word Catalogue/Directory Mailmerge Tutorial 'Sticky' thread at the top of this page: https://www.msofficeforums.com/mail-...-tutorial.html
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #4  
Old 04-25-2024, 03:23 AM
gmayor's Avatar
gmayor gmayor is offline Excel to Word - Many to One Mail Merge - Help! Windows 10 Excel to Word - Many to One Mail Merge - Help! Office 2019
Expert
 
Join Date: Aug 2014
Posts: 4,106
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

Another way would be to employ Merge Many To One

This entails a small modification to the merge document (attached) and a macro (below) run from the add-in to place the check boxes. The result is in the result document example (attached). Sort the data on the customer field(attached) and that is the key field and filename field. The rest of the fields are child fields..

Code:
Sub AddChecks(oDoc As Document)
Dim oTable As Table
Dim oRng As Range
Dim i As Long, j As Long
    Set oTable = oDoc.Tables(1)
    On Error Resume Next
    For i = 2 To oTable.Rows.Count
        For j = 6 To 7
        Set oRng = oTable.Cell(i, j).Range
            oRng.End = oRng.End - 1
            oDoc.ContentControls.Add wdContentControlCheckBox, oRng
        Next j
    Next i
End Sub
Attached Files
File Type: docx Sample Letter.docx (37.7 KB, 0 views)
File Type: xlsx Mail Merge Data.xlsx (73.6 KB, 0 views)
File Type: docx Result.docx (30.8 KB, 0 views)
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
Reply

Tags
mailmerge



Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel to Word - Many to One Mail Merge - Help! Mail Merge - Create seperate Mail merge pdf for each sheets of an excel file sureshbvs Word VBA 1 03-12-2021 05:42 AM
Excel to Word Using Mail Merge Jacqueline Mail Merge 1 10-07-2020 04:12 AM
Excel to Word - Many to One Mail Merge - Help! Excel to Word Table via Mail Merge ged147 Mail Merge 4 11-28-2018 02:52 AM
Update & Unlink Specific Merge Field in Word Doc from Mail Merge - Excel VBA RMerckling Mail Merge 16 05-17-2018 05:19 PM
Help with switches: Word mail merge with Excel ks_ Mail Merge 0 12-09-2009 05:09 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:17 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft