Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.formatting.longdocs
Drew Drew is offline
external usenet poster
 
Posts: 26
Default Merge field formatting question

I need Word to format a social security # merge field in this format:
___-__-6789. In other words, I need to hide all but the last 4 digits. My
data source (which I have no contrrol over) is already in SSN format
(123-45-6789). Using \# "___-__-#### gives me the the sum of 123 minus 45
minus 6789.

In a related topic, I need to achieve a similar effect with a mixed (text &
number) field. THe data source has both a name and an SSN. I need it to
dis[play like this: Name Name ___-__-6789. Is this even possible?

Thanks.
  #2   Report Post  
Posted to microsoft.public.word.formatting.longdocs
macropod[_2_] macropod[_2_] is offline
external usenet poster
 
Posts: 2,059
Default Merge field formatting question

Hi Drew,

To see how to do this and a wide range of other calculations in Word, check out my Word Field Maths 'tutorial', at:
http://www.wopr.com/cgi-bin/w3t/show...?Number=365442
or
http://www.gmayor.com/downloads.htm#Third_party
In particular, look at the item titled 'Parse Numbers Separated by + Or - Signs'

--
Cheers
macropod
[MVP - Microsoft Word]


"Drew" wrote in message ...
I need Word to format a social security # merge field in this format:
___-__-6789. In other words, I need to hide all but the last 4 digits. My
data source (which I have no contrrol over) is already in SSN format
(123-45-6789). Using \# "___-__-#### gives me the the sum of 123 minus 45
minus 6789.

In a related topic, I need to achieve a similar effect with a mixed (text &
number) field. THe data source has both a name and an SSN. I need it to
dis[play like this: Name Name ___-__-6789. Is this even possible?

Thanks.

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
Formatting a Merge field from xls doc Nat Microsoft Word Help 4 May 6th 08 07:20 AM
Word 2007 Mail Merge: Fill-in Field Code question gr8auntieokie Microsoft Word Help 2 April 11th 08 10:24 PM
Merge Field Formatting Leonardo Soto Mailmerge 1 March 31st 06 05:43 PM
Merge field formatting Jim Mailmerge 3 August 5th 05 11:55 PM
Merge Field Formatting Matty_b Mailmerge 1 May 10th 05 03:03 PM


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

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"