Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / February 2006

Tip: Looking for answers? Try searching our database.

How to keep leading spaces?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lee Harris - 19 Feb 2006 13:32 GMT
I've gone to a lot of trouble formatting a series of strings that look like

xx/xx/xx

where xx is a number (these aren't dates)

and adding spaces so that the length of the string is always 8 characters,
then using a fixed width font with mail merge so that all the columns lineup

however, when I insert the fields, it seems Word is ignoring any leading
spaces even if I specifically set the Excel data as text (and also with a
preceding ' character it still doesn't work)

how can I tell Word that when an Excel field is [space]7/11/29, I want it
printing with the space and not just as 7/11/29

many thanks if anyone knows

cheers,
lee
Graham Mayor - 19 Feb 2006 15:43 GMT
You will find it a lot easier to make it 07/11/29 by using a formatting
switch

eg {Mergefield fieldname \@ "MM/dd/yy"}
or
{Mergefield fieldname \@ "dd/MM/yy"}
as appropriate for your location.

Signature

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor -  Word MVP

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

> I've gone to a lot of trouble formatting a series of strings that
> look like
[quoted text clipped - 16 lines]
> cheers,
> lee
Lee Harris - 19 Feb 2006 15:50 GMT
> You will find it a lot easier to make it 07/11/29 by using a formatting
> switch

07/11/29 won't be correct though, I need [space]7/11/29

thanks anyway
Lee Harris - 19 Feb 2006 15:51 GMT
> You will find it a lot easier to make it 07/11/29 by using a formatting
> switch
[quoted text clipped - 3 lines]
> {Mergefield fieldname \@ "dd/MM/yy"}
> as appropriate for your location.

ps
its not a date/date format
Graham Mayor - 20 Feb 2006 06:49 GMT
I spotted that just as I clicked 'send'. Did you seet my later post?

Signature

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor -  Word MVP

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

>> You will find it a lot easier to make it 07/11/29 by using a
>> formatting switch
[quoted text clipped - 7 lines]
> ps
> its not a date/date format
Graham Mayor - 19 Feb 2006 15:52 GMT
Oops - I just spotted that the numbers were not dates (not that it should
matter if they look like dates).
The simple alternative is to use a decimal tab set at the position of the
first '/'.
the numbers will then line up on the slash position.

Signature

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor -  Word MVP

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

> I've gone to a lot of trouble formatting a series of strings that
> look like
[quoted text clipped - 16 lines]
> cheers,
> lee
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.