Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Tracy Tracy is offline
external usenet poster
 
Posts: 18
Default How do I create a data source within an excel document?

I am trying to do a mail merge with Word and Excel. It tells me to select a
data source, but not how to create one in Excel.
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default How do I create a data source within an excel document?

What Word expects in a data source is that it is a rectangular table.
The first row contains the field names (or column names). Subsequent
rows contain the data. e.g. a very simple example:

City Country
London England
New York USA
Berlin Germany

It would be very easy to set that up in Excel. IN Sheet1, you would put
the text "City" (without the quotes) in cell A1, "Country" in B1,
London in A2, England in B2, New York in A3, USA in B3, and so on.

With Excel data sources it's advisable to
a. have your data in the first sheet in the workbook
b. have the same kind of data in every cell in a column - e.g. if you
have a column that mostly has numbers in it, don't try to put a piece of
text in one of the cells.
c. avoid putting Excel formulas in the cells (OK, that rather reduces
the value of Excel, but it can cause problems during merges)
d. ensure that if you have long texts in a column (over 255
characters), that at least one cell in the first 8 cells in that column
has a long text.
e. avoid more than 255 columns - even though Excel 2007 can have more,
none of the mechanisms that Word uses to get data from Excel can see
beyond 255/256 columns.
f. realise that any cell formatting you apply will probably need to be
re-applied in the form of Word field "format switches" because the
default method that Word uses to retrieve Excel data in Word 2002 and
later (OLE DB) tends to discard cell formatting. So if for example you
have amounts in different currencies in the same column in Excel, make
sure you record the currency symbol in a separate column, or it will
probably be lost. If you want to record US Zip codes, phone numbers,
etc., it will almost certainly be worth spending some time looking
through the articles in this group (and I expect Graham may be along
with some good pointers).

Some of the above may not mean a lot right now, but it probably will,
soon enough.

I know Excel is a very popular data source for merges because many
people use Excel as their primary program for maintaining simple tables
of data, but the way Word gets data from Excel can cause problems, and
those problems can seem arbitrary because a lot of decisions are made
depending on what is in the first 8 (data) cells in each column, i.e.
the results you see can vary

Peter Jamieson

http://tips.pjmsn.me.uk

On 29/04/2010 19:34, Tracy wrote:
I am trying to do a mail merge with Word and Excel. It tells me to select a
data source, but not how to create one in Excel.

  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
trip_to_tokyo[_2_] trip_to_tokyo[_2_] is offline
external usenet poster
 
Posts: 137
Default How do I create a data source within an excel document?

EXCEL 2007

Here is a simple example:-

1. In cells A1 to F1 enter the following:

Title
FirstName
LastName
Address1
City
Country

The above are your column headers (these must agree with your WORD
corresponding fields).

2. In A2 to F2 enter the following:-

Mrs.
Michelle
Ambrose
145 Napoleon Avenue
Sanderstead
England

3. Then for additional rows enter the information that you want to.

If the above helps please hit Yes.

Thanks.




"Tracy" wrote:

I am trying to do a mail merge with Word and Excel. It tells me to select a
data source, but not how to create one in Excel.

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
Can't open Excel 2007 data source from Word 2003 document Shreck Microsoft Word Help 1 May 7th 09 01:42 PM
How do I set up mail merge using excel as my data source document Louise Mailmerge 2 January 30th 08 11:22 AM
Random Data Missing from Excel Data Source Amy Mailmerge 1 December 13th 07 10:31 PM
How do I create a data source fo mail merge using word document Shaaban Microsoft Word Help 2 May 9th 06 05:38 PM
how do you create a data source cmcq Mailmerge 1 November 26th 04 12:07 PM


All times are GMT +1. The time now is 09:21 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"