Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 05-11-2014, 06:55 PM
macropod's Avatar
macropod macropod is online now Page Break on Key Change Windows 7 32bit Page Break on Key Change Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,527
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

Try:
{QUOTE{IF{MERGESEQ}= 1 "{SET Key1 ""}{SET Key2 ""}"}"{IF{MERGEFIELD ED}<> {REF Key1} "{IF{MERGESEQ}> 1 {QUOTE 12}}{MERGEFIELD ED}{SET Key1 {MERGEFIELD ED}}¶
"}{IF{MERGEFIELD NUM}<> {REF Key2} "{SET Key2 {MERGEFIELD NUM}}¶
{MERGEFIELD NUM}¶
"}{MERGEFIELD LAST} {MERGEFIELD FIRST}¶
"}
Note: You'll need to replace the ¶ symbols with real paragraph breaks or line breaks. You also need all of the spaces indicated - the field 'code' in your post is missing numerous critical spaces.

For a macro to convert the above to a working field code, see: http://www.gmayor.com/export_field.htm#TextToField
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 

Tags
key, mail merge, page break



Similar Threads
Thread Thread Starter Forum Replies Last Post
Page Break on Key Change Delete a page after Section Break Next Page Aston Word 9 04-27-2022 07:38 AM
Page Break on Key Change First section will not 'insert' blank page even though sectn 2 is 'odd' page break Pat_Hodgson Word 6 12-01-2013 04:22 PM
Page Break on Key Change Section break makes style change when printing or saving as pdf bohk Word 4 06-07-2013 02:34 PM
Page Break on Key Change Section Break (Next Page) replaces Section Break (Continuous) when deleted Carlabasson Word 2 03-25-2013 10:13 PM
paragaph hard break, soft break and ...strange break czomberzdaniela Word 2 12-03-2010 06:58 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:52 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