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 / January 2008

Tip: Looking for answers? Try searching our database.

mail merge data source shows 2 tables

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
baileycat - 31 Jan 2008 00:19 GMT
I'm using an excel file with one worksheet as my data source to merge to a
word document.  First I select"Main document setup", then when I "Open Data
Source" and the excel file, I get a pop-up to select the table.  2 tables are
listed, both with the same name.  Can you tell me why 2 tables are listed,
when there's only one worksheet in the excel file?
Peter Jamieson - 31 Jan 2008 09:34 GMT
I can't say I know all the details, but at some point you have probably
defined either a database (or database filter), a list or some grouping in
your Excel sheet, or you may simply have set a print area.

When you open an Excel data source from Word 2002 or later, Word uses OLE DB
to get the data. The OLE DB provider lists a number of things in the
workbook as "tables" - e.g. worksheets and named ranges. When you define a
database, or set a print area, Excel actually creates a named range.

However, what the OLE DB provider actually sees also depends on whether the
workbook is actually open in Excel or not. For example, I have a workbook
here with a database defined in Sheet1. When it is open, and I use it as a
data source, OLE DB lists Sheet1$ and Sheet1$_FilterDatabase as "Tables". I
can use either of them as a data source. If I close the workbook then try to
use it as a data source, it lists Sheet1$ and Sheet1$_, and I can only
successfully connect to Sheet1$, not Sheet1$_. In essence, I think the
Sheet1$_FilterDatabase "object" is only really "there" because Excel
constructs it when it opens the workbook, but it leaves something in the
.xls file that looks like a "table name" when it closes the workbook.

Signature

Peter Jamieson
http://tips.pjmsn.me.uk

> I'm using an excel file with one worksheet as my data source to merge to a
> word document.  First I select"Main document setup", then when I "Open
[quoted text clipped - 3 lines]
> listed, both with the same name.  Can you tell me why 2 tables are listed,
> when there's only one worksheet in the excel file?
baileycat - 31 Jan 2008 23:55 GMT
Thanks Peter.  Your example describes exactly the situation I encountered.  I
am reassured to know it's 'just what happens'.

> I can't say I know all the details, but at some point you have probably
> defined either a database (or database filter), a list or some grouping in
[quoted text clipped - 23 lines]
> > listed, both with the same name.  Can you tell me why 2 tables are listed,
> > when there's only one worksheet in the excel file?

Rate this thread:






 
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.