#1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
uriahheep uriahheep is offline
external usenet poster
 
Posts: 3
Default Blank Spaces

I have a mail merge where the datasource has leading spaces. I wish to keep
these but word 2003 is ignoring them. Is there a way to keep these and use
them in the mail merge.
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default Blank Spaces

Is there a way to keep these and use
them in the mail merge.


It depends on the data source and how you connect to it.

However, I think the only type of data source that is likely to save leading
spaces is a table in a word document, and in order to use that you would
probably have to find a way to create that table without losing the spaces
anyway.

For Excel sheet data sources, the only connection method that preserves
leading blanks is the old Excel converter (which you can download from
somewhere on Graham Mayor's site at http://www.gmayor.com/downloads.htm I
think). However, that has other limitations.

What is the data source?

Peter Jamieson

"uriahheep" wrote in message
...
I have a mail merge where the datasource has leading spaces. I wish to keep
these but word 2003 is ignoring them. Is there a way to keep these and use
them in the mail merge.



  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
uriahheep uriahheep is offline
external usenet poster
 
Posts: 3
Default Blank Spaces

I am using a .txt file that is created by third party software although it is
..txt it is separated by commas.

"Peter Jamieson" wrote:

Is there a way to keep these and use
them in the mail merge.


It depends on the data source and how you connect to it.

However, I think the only type of data source that is likely to save leading
spaces is a table in a word document, and in order to use that you would
probably have to find a way to create that table without losing the spaces
anyway.

For Excel sheet data sources, the only connection method that preserves
leading blanks is the old Excel converter (which you can download from
somewhere on Graham Mayor's site at http://www.gmayor.com/downloads.htm I
think). However, that has other limitations.

What is the data source?

Peter Jamieson

"uriahheep" wrote in message
...
I have a mail merge where the datasource has leading spaces. I wish to keep
these but word 2003 is ignoring them. Is there a way to keep these and use
them in the mail merge.




  #4   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default Blank Spaces

I am pretty sure that none of the connection methods available to Word will
preserve the leading blanks (although at least one method retain trailing
blanks).

As long as you have 63 fields (columns) or fewer in your text file, I would
try the following:
a. open the text file in Word (if necessary, check Word
Tools|Options|General|"confirm conversion at open" before doing so, and
select the file type and encoding you need).
b. select the column headers and text
c. use Table|"Convert text to table" to convert the data into a Word table
d. save the resulting document as a .doc
e. use that as the data source.

If necessary, you could do that using a Word macro, but I leave you to do
that if you need it.

Peter Jamieson


"uriahheep" wrote in message
...
I am using a .txt file that is created by third party software although it
is
.txt it is separated by commas.

"Peter Jamieson" wrote:

Is there a way to keep these and use
them in the mail merge.


It depends on the data source and how you connect to it.

However, I think the only type of data source that is likely to save
leading
spaces is a table in a word document, and in order to use that you would
probably have to find a way to create that table without losing the
spaces
anyway.

For Excel sheet data sources, the only connection method that preserves
leading blanks is the old Excel converter (which you can download from
somewhere on Graham Mayor's site at http://www.gmayor.com/downloads.htm I
think). However, that has other limitations.

What is the data source?

Peter Jamieson

"uriahheep" wrote in message
...
I have a mail merge where the datasource has leading spaces. I wish to
keep
these but word 2003 is ignoring them. Is there a way to keep these and
use
them in the mail merge.






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
suppress spaces left by blank mail merge fields k2swan Mailmerge 1 November 18th 05 09:41 PM
How do I prevent non-breaking spaces or blank fields during a Mer. nettedavid Mailmerge 5 April 6th 05 07:11 PM
How do I enter blank line spaces in pre-set forms? Marion Mailmerge 0 March 28th 05 01:21 PM
Blank spaces between tables in word Sal F Tables 1 March 8th 05 07:29 PM
Blank spaces between rows Hélène Tables 9 February 1st 05 04:44 AM


All times are GMT +1. The time now is 03:58 AM.

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"