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 » Formatting Long Documents
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Merge field formatting question



 
 
Thread Tools Display Modes
  #1  
Old September 26th, 2008, 08:40 PM posted to microsoft.public.word.formatting.longdocs
Drew
external usenet poster
 
Posts: 114
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.
Ads
  #2  
Old September 27th, 2008, 04:06 AM posted to microsoft.public.word.formatting.longdocs
macropod[_2_]
external usenet poster
 
Posts: 2,402
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.

 




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 09:20 PM.


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