Home |
Search |
Today's Posts |
#1
|
|||
|
|||
How do I format a social security filed?
I have a field that I liked to have to output a social security number with
its dashes, and also 2 other fields in which the first holds today's date and the other should be a week later from today's date. How can I accomplish that? Thanks in advance. Hernan |
#2
|
|||
|
|||
If you let us know the format of social security numbers in your country
(contributors here are from all over the world) then we could advise, but http://www.gmayor.com/formatting_word_fields.htm should give you a few clues. Date calculations are tricker - see http://www.wopr.com/cgi-bin/w3t/show...?Number=249902 -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Hernan wrote: I have a field that I liked to have to output a social security number with its dashes, and also 2 other fields in which the first holds today's date and the other should be a week later from today's date. How can I accomplish that? Thanks in advance. Hernan |
#3
|
|||
|
|||
Running a macro containing the following code will insert a date 30 days in
the future at the location of the cursor. Selection.InsertBefore DateAdd("d", 7, Date) You can use the formatting function to get the format that you want. e.g. Selection.InsertBefore Format(DateAdd("d", 7, Date), "dddd, MMMM d, yyyy") will insert Saturday, June 4, 2005 -- Hope this helps. Please reply to the newsgroup unless you wish to avail yourself of my services on a paid consulting basis. Doug Robbins - Word MVP "Hernan" wrote in message ... I have a field that I liked to have to output a social security number with its dashes, and also 2 other fields in which the first holds today's date and the other should be a week later from today's date. How can I accomplish that? Thanks in advance. Hernan |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Syntax for Number format in the Text Form Field Options | Microsoft Word Help | |||
How to paste and retain pasting material format? | Microsoft Word Help | |||
Is Word 2.0 format same as Word 2000 format? | Microsoft Word Help | |||
Maintaining the format of linked tables. | Tables | |||
mail merge using excel spread looses the format for social securit | Mailmerge |