Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #9  
Old 05-05-2021, 11:14 PM
macropod's Avatar
macropod macropod is offline Pull information from 2 different rows in mail merge Windows 10 Pull information from 2 different rows in mail merge Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,385
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

if you're willing, the following macro will reformat your worksheet so that it can work with a standard mailmerge:
Code:
Sub ReformatData()
Application.ScreenUpdating = False
Dim r As Long
With ActiveSheet
  .Columns("A:H").Copy
  .Paste Destination:=.Range("I1")
  .Range("I2:P2").Delete Shift:=xlUp
  For r = .UsedRange.Cells.SpecialCells(xlCellTypeLastCell).Row To 3 Step -2
    .Rows(r).EntireRow.Delete
  Next
End With
Application.ScreenUpdating = True
End Sub
After the macro has been run, you'll see that every second row has been moved to columns I:P.

So that the mailmerge can access the data correctly, all you'll need to do is to rename the column headers so they correctly differentiate buyers from sellers.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 

Tags
mail merge, microsoft word 2013



Similar Threads
Thread Thread Starter Forum Replies Last Post
Pull information from 2 different rows in mail merge Mail Merge with Fields extracted from ROWS instead of COLUMNS or transpose of typical mail merge djrexy Mail Merge 1 05-20-2020 04:04 PM
Pull information from 2 different rows in mail merge Need help suppressing information in a table in a mail merge Laura123 Mail Merge 1 12-04-2017 01:34 PM
Can you mail merge information into Smartart graphics? QCJen Word 0 05-31-2017 08:02 AM
How to mail merge information in PPT 2010 mschlagel Excel 1 11-08-2012 07:49 PM
Pull Outlook Meeting Information into Word alhare Word 0 02-01-2011 12:51 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:14 PM.


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