Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-07-2013, 11:39 PM
inwell inwell is offline Mail Merge Windows XP Mail Merge Office 2007
Novice
Mail Merge
 
Join Date: Dec 2013
Posts: 4
inwell is on a distinguished road
Default Mail Merge

Hi,
I was doing mail merge to print labels.(Excel Sheet used). In the template i added <Name> <Address> <City> <Zip> etc. in each separate row.

Now there is one special field called POST (Director,Principal etc) which is not common in every record .

So how do i make it look in order if the next record does not contain post.


<Name>ABCCCCCCC
<Post>Director
<Add>xxxxxxxxxxxxxxx
<City>xxxxxxx
<Zip>xxxxxxxx

now when there is no post present my next label leaves a blank line.How do i make it look without gaps,if few fields are not present in some records...(like this)
ABCCCCC
xxxxxxx
xxxxxxx
xxxxxxxx (4lines instead of 5 no line between)


sorry for lengthy post..

regards
Reply With Quote
  #2  
Old 12-07-2013, 11:54 PM
macropod's Avatar
macropod macropod is offline Mail Merge Windows 7 32bit Mail Merge Office 2010 32bit
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

Hi inwell,

That's fairly easy:
• Delete the paragraph/line break before your «Post» field
• Select your «Post» field and press Shift-F9. You should see { MERGEFIELD Post }
• Change { MERGEFIELD Post } to
{ MERGEFIELD Post \b "¶
"}
where the ¶ is an actual paragraph/line break.
• Press F9 to update the field
• Run your merge.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 12-08-2013, 03:28 AM
inwell inwell is offline Mail Merge Windows XP Mail Merge Office 2007
Novice
Mail Merge
 
Join Date: Dec 2013
Posts: 4
inwell is on a distinguished road
Default

hello,
how do i add that actual line break in the brackets? i m not getting that...will please tell me how?

and why my first label is always blank? (i tried both options while importing data..(my first row is headers once selected once not)

ref img1-2
Attached Images
File Type: jpg word1.JPG (117.3 KB, 12 views)
File Type: jpg word2.JPG (163.9 KB, 11 views)
Reply With Quote
  #4  
Old 12-08-2013, 03:33 AM
macropod's Avatar
macropod macropod is offline Mail Merge Windows 7 32bit Mail Merge Office 2010 32bit
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

You would find it easier to see what you're working with if you clicked on the ¶ symbol on the Home tab to display the document's non-printing content. If your first label is always blank, that's probably because your first data record is empty.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 12-08-2013, 04:44 AM
inwell inwell is offline Mail Merge Windows XP Mail Merge Office 2007
Novice
Mail Merge
 
Join Date: Dec 2013
Posts: 4
inwell is on a distinguished road
Default

hi,
sorry to trouble you again..

what you want me to do now..ahead of this..
in this pic.. email field i have selected... (records with no email,should print the address line above
Attached Images
File Type: jpg word3l.JPG (109.2 KB, 15 views)
Reply With Quote
  #6  
Old 12-08-2013, 01:13 PM
macropod's Avatar
macropod macropod is offline Mail Merge Windows 7 32bit Mail Merge Office 2010 32bit
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

I can see the \b in your field, but not the rest of the construction:
{ MERGEFIELD Post \b "¶
"}
I can also see that you haven't deleted the paragraph break before the field.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #7  
Old 12-08-2013, 11:50 PM
inwell inwell is offline Mail Merge Windows XP Mail Merge Office 2007
Novice
Mail Merge
 
Join Date: Dec 2013
Posts: 4
inwell is on a distinguished road
Default

hi,
I inserted the paragraph symbol from insert symbol on ribbon.
but how do i remove/delete the paragraph symbol before POST field? if i delete that ,my POST field moves up to the first line near <NAME> field?
any special way to remove that mark...?
i have marked the paragraph mark that you think i need to remove..please check if thats what you mean? and how do i do that ?
Attached Images
File Type: jpg word3l.JPG (114.3 KB, 11 views)
Reply With Quote
  #8  
Old 12-08-2013, 11:56 PM
macropod's Avatar
macropod macropod is offline Mail Merge Windows 7 32bit Mail Merge Office 2010 32bit
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

You still do not have a paragraph break within the field - it looks like all you've done is to put the ¶ symbol there. Furthermore, you've how omitted the \b switch! And yes, the paragraph break you have highlighted should be deleted (or you could drag it into the field where you have the ¶ symbol).

Why are you making this so hard?
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail Merge Duplication of address on merge RICKY Mail Merge 1 09-26-2012 03:14 PM
Mail Merge Can merge be done without mail merge? John H. Power Mail Merge 1 06-05-2012 11:58 AM
Mail Merge Conditional merge fields in mail merge Aude Mail Merge 1 01-06-2012 07:38 PM
Mail Merge From a beginner: Mail Merge using Windows Mail mhalpern705 Mail Merge 3 12-16-2011 04:58 AM
Mail Merge Saving INDV mail merges During the mail merge sedain121 Mail Merge 2 10-04-2011 07:52 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:31 AM.


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