A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Mailmerge
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Mail Merge - trim field lengths



 
 
Thread Tools Display Modes
  #1  
Old January 8th, 2010, 03:44 PM posted to microsoft.public.word.mailmerge.fields
adam cook
external usenet poster
 
Posts: 2
Default Mail Merge - trim field lengths

Hi Guys

I have created a label in Word 2003 using Mail Merge from a database.

Everything is fine, it all pulls through fine, formatted correctly, prints fine etc etc but the issue i have is that one field can exceed a certain length and drop down onto the next line which then makes the label print over two labels.

Example:
Cook Adam - displays fine on one line
PatientSurname Forname1 - is to long and drops the Forname1 onto the next line which pushes the label down onto two labels.

Is there anyway i can restrict the length of this field and maybe insert a * to show the field has been trimmed down?


Any help/suggestions would be great.

Thanks in advance
Adam



Submitted via EggHeadCafe - Software Developer Portal of Choice
IIS Network Load Balancing, Sessions and IP Affinity
http://www.eggheadcafe.com/tutorials...-balancin.aspx
  #2  
Old January 8th, 2010, 09:15 PM posted to microsoft.public.word.mailmerge.fields
macropod[_2_]
external usenet poster
 
Posts: 2,402
Default Mail Merge - trim field lengths

Hi Adam,

Word provides no field manipulation tools (eg switches/filters) for this. However, if you place the fields into a table in which the
cell heights & widths are fixed, you can prevent the text wrapping from changing the label heights - anything that doesn't fit the
space provided will simply be truncated. Note too that, with a table, you have the option of formatting cells so that the text size
auto-adjusts to fit the space available.

--
Cheers
macropod
[Microsoft MVP - Word]


"adam cook" wrote in message ...
Hi Guys

I have created a label in Word 2003 using Mail Merge from a database.

Everything is fine, it all pulls through fine, formatted correctly, prints fine etc etc but the issue i have is that one field can
exceed a certain length and drop down onto the next line which then makes the label print over two labels.

Example:
Cook Adam - displays fine on one line
PatientSurname Forname1 - is to long and drops the Forname1 onto the next line which pushes the label down onto two labels.

Is there anyway i can restrict the length of this field and maybe insert a * to show the field has been trimmed down?


Any help/suggestions would be great.

Thanks in advance
Adam



Submitted via EggHeadCafe - Software Developer Portal of Choice
IIS Network Load Balancing, Sessions and IP Affinity
http://www.eggheadcafe.com/tutorials...-balancin.aspx


  #3  
Old January 11th, 2010, 10:29 AM posted to microsoft.public.word.mailmerge.fields
adam cook
external usenet poster
 
Posts: 2
Default thank you

Brilliant! that worked a treat. Thank you

Adam



macropod wrote:

Hi Adam,Word provides no field manipulation tools (eg switches/filters) for
08-Jan-10

Hi Adam,

Word provides no field manipulation tools (eg switches/filters) for this. However, if you place the fields into a table in which the
cell heights & widths are fixed, you can prevent the text wrapping from changing the label heights - anything that does not fit the
space provided will simply be truncated. Note too that, with a table, you have the option of formatting cells so that the text size
auto-adjusts to fit the space available.

--
Cheers
macropod
[Microsoft MVP - Word]

Previous Posts In This Thread:


Submitted via EggHeadCafe - Software Developer Portal of Choice
Converting a Collection into a DataTable using Generics
http://www.eggheadcafe.com/tutorials...lection-i.aspx
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:48 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.