Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
alh alh is offline
external usenet poster
 
Posts: 1
Default How to avoid extra spaces in 1st line of mailing address

I am using Excel spreadsheet data to merge into a Microsoft Word mailing
label template. The first line of the label draws from this info on Excel:
MrMrs, 1st name, and, 2nd name, last name. When the merge occurs, sometimes
there is an extra space before the 1st name and then sometimes extra space
between names. How do I avoid these extra spaces?
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default How to avoid extra spaces in 1st line of mailing address

It appears that you have some name fields without data so you are simply
merging the space between the fields. You need to conditionally merge the
fields eg
{ Mergefield MrMrs }{If {Mergefield "1st Name"} "" " {Mergefield "1st
Name"}"}{If {Mergefield "2nd Name"} "" " {Mergefield "2nd Name"}"} {
Mergefield "Last Name" }

The whole string goes on one line - wrapped naturally if too long to fit.
Use CTRL+F9 for the brackets {} and ensure the fieldnames are spelled
correctly.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org




alh wrote:
I am using Excel spreadsheet data to merge into a Microsoft Word
mailing label template. The first line of the label draws from this
info on Excel: MrMrs, 1st name, and, 2nd name, last name. When the
merge occurs, sometimes there is an extra space before the 1st name
and then sometimes extra space between names. How do I avoid these
extra spaces?



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Extra Line Inserted following title and name line in Address Block JoeyW Mailmerge 5 March 24th 09 02:23 AM
stop putting extra line spaces in email Greg G Microsoft Word Help 9 September 6th 06 04:09 PM
Deleting extra line spaces KL Microsoft Word Help 2 May 15th 06 09:31 PM
How do I get the address in the mailing wizard to line up? Kelly New Users 1 October 6th 05 12:30 AM
Mysterious line and extra spaces in footer! AmandaH Microsoft Word Help 7 August 22nd 05 12:41 AM


All times are GMT +1. The time now is 03:10 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"