A Microsoft Word forum. Microsoft Office Word Forum - WordBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Microsoft Office Word Forum - WordBanter forum » Microsoft Word Newsgroups » Mailmerge
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Mail merge and Excel filtering



 
 
Thread Tools Display Modes
  #1  
Old November 28th 07, 04:18 AM posted to microsoft.public.word.mailmerge.fields
BeetleB
external usenet poster
 
Posts: 2
Default Mail merge and Excel filtering

At home, I am working on an XP operating system with Work and Excel versions.
Microsoft Office Word 2003 and Microsoft Office Word 2003. I have SP2.


I encountered a problem last evening. I keep the mailing information of an
organization of over 500 members. The database for the org is an Excel
spreadsheet. Since 2006, I have been using Mail Merge in Word to generate
mail labels for the month mailings. All has worked very well. Last night,
I browsed in the merge steps to find my workbook. I opened it. The
spreadsheet named MEPN appeared along with a spreadsheet MEPN_ which does not
exist in the workbook. (It turns out that last month, I used filtering in
Excel to get some special lists. ) When I selected, the spreadsheet MEPN as
I would normally do, I was met with an emtpy Tables screen --- instead of
the usual possibility to filter the MEPN worksheet items. Pressing OK, the
message said that my table (presumably MEPN) could not be opened.

Does using Excel filtering disable my use of Mail Merge? Does it corrupt
the spreadsheet for use in Mail Merge? I worked with the spreadsheet ---
turning on and off the filtering in Excel and got the same results in Mail
Merge. I even copied the worksheet to another new workbook and got similar
results. The table could not be opened. What I believe does work as a
workaround is to copy the content and paste it in a new workbook. Then I use
that new workbook with Mail Merge. Is there anyway to redeem my original
worksheet so that I nullify the results of the filtering? I have done some
searching. Is this problem discussed somewhere on the Web?

Thanks.

BettleB

Ads
  #2  
Old November 28th 07, 05:22 AM posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP
external usenet poster
 
Posts: 8,832
Default Mail merge and Excel filtering

I don't believe that filtering from Word should have any impact on the data
source.

You may try selecting Options from the Tools menu in Word and then go to the
General tab and check the Confirm conversions at open item and see if
changing the method of connecting to the data source (for which you will
then be given the option when you go to select the data source) has any
influence on the behaviour.

--
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

"BeetleB" wrote in message
...
At home, I am working on an XP operating system with Work and Excel
versions.
Microsoft Office Word 2003 and Microsoft Office Word 2003. I have SP2.


I encountered a problem last evening. I keep the mailing information of
an
organization of over 500 members. The database for the org is an Excel
spreadsheet. Since 2006, I have been using Mail Merge in Word to generate
mail labels for the month mailings. All has worked very well. Last
night,
I browsed in the merge steps to find my workbook. I opened it. The
spreadsheet named MEPN appeared along with a spreadsheet MEPN_ which does
not
exist in the workbook. (It turns out that last month, I used filtering in
Excel to get some special lists. ) When I selected, the spreadsheet MEPN
as
I would normally do, I was met with an emtpy Tables screen --- instead of
the usual possibility to filter the MEPN worksheet items. Pressing OK,
the
message said that my table (presumably MEPN) could not be opened.

Does using Excel filtering disable my use of Mail Merge? Does it corrupt
the spreadsheet for use in Mail Merge? I worked with the spreadsheet ---
turning on and off the filtering in Excel and got the same results in Mail
Merge. I even copied the worksheet to another new workbook and got
similar
results. The table could not be opened. What I believe does work as a
workaround is to copy the content and paste it in a new workbook. Then I
use
that new workbook with Mail Merge. Is there anyway to redeem my original
worksheet so that I nullify the results of the filtering? I have done
some
searching. Is this problem discussed somewhere on the Web?

Thanks.

BettleB



  #3  
Old November 28th 07, 11:58 AM posted to microsoft.public.word.mailmerge.fields
Peter Jamieson
external usenet poster
 
Posts: 4,583
Default Mail merge and Excel filtering

Does using Excel filtering disable my use of Mail Merge?

I have certainly seen this, but have obviously not worked enough with Excel
lists myself to be able to replicate the problem. I will try again when I
get some time. It certainly isn't merely the presence of a list that causes
the problem, and it's possible to do quite a lot to the list without any
problems arising.

Does it corrupt
the spreadsheet for use in Mail Merge?


I don't know exactly what it does, but my guess is that it does something
that causes the Jet/OLE DB provider that Word uses to get the data to fail
in some way. It is certainly worth trying to use DDE to connect to the data,
if it is in the first sheet in your workbook (check Word
Tools|Options|General|COnfirm conversions at open, go through the process of
connecting to the sheet again, and choose the DDE option when offered.

A few questions for you (they may help me to avoid going down blind alleys):
a. what sort of things did you do with your list? Filtering? Sorting?
b. did you use the data form to alter the list data?
c. did you connect to any external databases?
d. was the list at the top left of the sheet, or somewhere else on your
sheet?
e. how did you "remove" the list? Did you convert it to a range?

(Obviously it would be great to see the workbook you have but in this case
it sounds unlikely you would be able to provide it).
--
Peter Jamieson
http://tips.pjmsn.me.uk

"BeetleB" wrote in message
...
At home, I am working on an XP operating system with Work and Excel
versions.
Microsoft Office Word 2003 and Microsoft Office Word 2003. I have SP2.


I encountered a problem last evening. I keep the mailing information of
an
organization of over 500 members. The database for the org is an Excel
spreadsheet. Since 2006, I have been using Mail Merge in Word to generate
mail labels for the month mailings. All has worked very well. Last
night,
I browsed in the merge steps to find my workbook. I opened it. The
spreadsheet named MEPN appeared along with a spreadsheet MEPN_ which does
not
exist in the workbook. (It turns out that last month, I used filtering in
Excel to get some special lists. ) When I selected, the spreadsheet MEPN
as
I would normally do, I was met with an emtpy Tables screen --- instead of
the usual possibility to filter the MEPN worksheet items. Pressing OK,
the
message said that my table (presumably MEPN) could not be opened.

Does using Excel filtering disable my use of Mail Merge? Does it corrupt
the spreadsheet for use in Mail Merge? I worked with the spreadsheet ---
turning on and off the filtering in Excel and got the same results in Mail
Merge. I even copied the worksheet to another new workbook and got
similar
results. The table could not be opened. What I believe does work as a
workaround is to copy the content and paste it in a new workbook. Then I
use
that new workbook with Mail Merge. Is there anyway to redeem my original
worksheet so that I nullify the results of the filtering? I have done
some
searching. Is this problem discussed somewhere on the Web?

Thanks.

BettleB


  #4  
Old November 29th 07, 04:17 AM posted to microsoft.public.word.mailmerge.fields
BeetleB
external usenet poster
 
Posts: 2
Default Mail merge and Excel filtering

a. during this year of work with the workbook, I have mainly added new rows
(records) to the main member spreadsheet. Yes, a few sorts and, as I said,
last month I created some lists by filtering based on paying and non-paying
members of the org.
b. no.
c. no.
d. my problem occurred with auto-filtering turned off. The spreadsheet is
usually fully displayed. (As a thought, I moved the member spreadsheet to
the extreme left (sheet 1 position) for testing.
e. If I understand - "remove" the list, I created the lists in October by
using auto-filter. When done, I just turned off, auto filter.

Now when I use merge to build my labels, I see this MEPN_ spreadsheet. If I
turn on auto-filter and test a merge, sure enough, the name becomes something
like MEPN_Filter database or something like that -- that convinces me that
filtering has left a residue.

I set the Confirm conversion option in Word and tested tonight. Again - the
spreadsheet could not be opened. I used all three conversion methods
suggested -- none work.

Another window comes up using DDE giving me choices of Entire Spreadsheet or
_Filter Database. More evidence.

Thanks for trying to help. As I said I have a workaround that is a little
clumsy.
I appreciate your time. The other gentleman also suggested using that
option.


"Peter Jamieson" wrote:

Does using Excel filtering disable my use of Mail Merge?


I have certainly seen this, but have obviously not worked enough with Excel
lists myself to be able to replicate the problem. I will try again when I
get some time. It certainly isn't merely the presence of a list that causes
the problem, and it's possible to do quite a lot to the list without any
problems arising.

Does it corrupt
the spreadsheet for use in Mail Merge?


I don't know exactly what it does, but my guess is that it does something
that causes the Jet/OLE DB provider that Word uses to get the data to fail
in some way. It is certainly worth trying to use DDE to connect to the data,
if it is in the first sheet in your workbook (check Word
Tools|Options|General|COnfirm conversions at open, go through the process of
connecting to the sheet again, and choose the DDE option when offered.

A few questions for you (they may help me to avoid going down blind alleys):
a. what sort of things did you do with your list? Filtering? Sorting?
b. did you use the data form to alter the list data?
c. did you connect to any external databases?
d. was the list at the top left of the sheet, or somewhere else on your
sheet?
e. how did you "remove" the list? Did you convert it to a range?

(Obviously it would be great to see the workbook you have but in this case
it sounds unlikely you would be able to provide it).
--
Peter Jamieson
http://tips.pjmsn.me.uk

"BeetleB" wrote in message
...
At home, I am working on an XP operating system with Work and Excel
versions.
Microsoft Office Word 2003 and Microsoft Office Word 2003. I have SP2.


I encountered a problem last evening. I keep the mailing information of
an
organization of over 500 members. The database for the org is an Excel
spreadsheet. Since 2006, I have been using Mail Merge in Word to generate
mail labels for the month mailings. All has worked very well. Last
night,
I browsed in the merge steps to find my workbook. I opened it. The
spreadsheet named MEPN appeared along with a spreadsheet MEPN_ which does
not
exist in the workbook. (It turns out that last month, I used filtering in
Excel to get some special lists. ) When I selected, the spreadsheet MEPN
as
I would normally do, I was met with an emtpy Tables screen --- instead of
the usual possibility to filter the MEPN worksheet items. Pressing OK,
the
message said that my table (presumably MEPN) could not be opened.

Does using Excel filtering disable my use of Mail Merge? Does it corrupt
the spreadsheet for use in Mail Merge? I worked with the spreadsheet ---
turning on and off the filtering in Excel and got the same results in Mail
Merge. I even copied the worksheet to another new workbook and got
similar
results. The table could not be opened. What I believe does work as a
workaround is to copy the content and paste it in a new workbook. Then I
use
that new workbook with Mail Merge. Is there anyway to redeem my original
worksheet so that I nullify the results of the filtering? I have done
some
searching. Is this problem discussed somewhere on the Web?

Thanks.

BettleB



  #5  
Old November 29th 07, 10:05 AM posted to microsoft.public.word.mailmerge.fields
Peter Jamieson
external usenet poster
 
Posts: 4,583
Default Mail merge and Excel filtering

Yes, there is no doubt that filtering leaves a "residue."

I've done a little bit of research but not yet enough to answer your
question. So far...

1. When you set up the filter, Excel creates a range called
thesheetname!_FilterDatabase.

2. If the sheet is open when you connect from Word (or even to itself, from
Excel), you see this name listed as a "TABLE", except there is a $ instead
of the !, i.e. you see thesheetname$_FilterDatabase. However, if the sheet
is closed when you connect from Word, you see the name thesheetname$_

3. When you try to connect from Word (or Excel), Word/Excel can use the
thesheetname$_FilterDatabase table as a data source. But they cannot use
thesheetname$_ as a data source.

4. However, I still have not been able to work out what makes existing
sheets inaccessible from Word. But maybe you could try two experiments:
a. when you try to connect from Word (using OLE DB, which is the default
connection method), does it make a difference whether or not the sheet is
open in Excel?
b. if you create a new blank Excel workbook, then use Excel Data|Import
External Data|Import Data and select the "problem" workbook, can you import
the data? (Also try with the problem workbook opened and closed). FWIW I
would expect the same problem as both Word and Excel are using the same OLE
DB provider to get their data. But Excel is sometimes rather better at doing
that, so it seems worth trying.

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

"BeetleB" wrote in message
...
a. during this year of work with the workbook, I have mainly added new
rows
(records) to the main member spreadsheet. Yes, a few sorts and, as I
said,
last month I created some lists by filtering based on paying and
non-paying
members of the org.
b. no.
c. no.
d. my problem occurred with auto-filtering turned off. The spreadsheet is
usually fully displayed. (As a thought, I moved the member spreadsheet to
the extreme left (sheet 1 position) for testing.
e. If I understand - "remove" the list, I created the lists in October by
using auto-filter. When done, I just turned off, auto filter.

Now when I use merge to build my labels, I see this MEPN_ spreadsheet. If
I
turn on auto-filter and test a merge, sure enough, the name becomes
something
like MEPN_Filter database or something like that -- that convinces me that
filtering has left a residue.

I set the Confirm conversion option in Word and tested tonight. Again -
the
spreadsheet could not be opened. I used all three conversion methods
suggested -- none work.

Another window comes up using DDE giving me choices of Entire Spreadsheet
or
_Filter Database. More evidence.

Thanks for trying to help. As I said I have a workaround that is a little
clumsy.
I appreciate your time. The other gentleman also suggested using that
option.


"Peter Jamieson" wrote:

Does using Excel filtering disable my use of Mail Merge?


I have certainly seen this, but have obviously not worked enough with
Excel
lists myself to be able to replicate the problem. I will try again when I
get some time. It certainly isn't merely the presence of a list that
causes
the problem, and it's possible to do quite a lot to the list without any
problems arising.

Does it corrupt
the spreadsheet for use in Mail Merge?


I don't know exactly what it does, but my guess is that it does something
that causes the Jet/OLE DB provider that Word uses to get the data to
fail
in some way. It is certainly worth trying to use DDE to connect to the
data,
if it is in the first sheet in your workbook (check Word
Tools|Options|General|COnfirm conversions at open, go through the process
of
connecting to the sheet again, and choose the DDE option when offered.

A few questions for you (they may help me to avoid going down blind
alleys):
a. what sort of things did you do with your list? Filtering? Sorting?
b. did you use the data form to alter the list data?
c. did you connect to any external databases?
d. was the list at the top left of the sheet, or somewhere else on your
sheet?
e. how did you "remove" the list? Did you convert it to a range?

(Obviously it would be great to see the workbook you have but in this
case
it sounds unlikely you would be able to provide it).
--
Peter Jamieson
http://tips.pjmsn.me.uk

"BeetleB" wrote in message
...
At home, I am working on an XP operating system with Work and Excel
versions.
Microsoft Office Word 2003 and Microsoft Office Word 2003. I have
SP2.


I encountered a problem last evening. I keep the mailing information
of
an
organization of over 500 members. The database for the org is an Excel
spreadsheet. Since 2006, I have been using Mail Merge in Word to
generate
mail labels for the month mailings. All has worked very well. Last
night,
I browsed in the merge steps to find my workbook. I opened it. The
spreadsheet named MEPN appeared along with a spreadsheet MEPN_ which
does
not
exist in the workbook. (It turns out that last month, I used filtering
in
Excel to get some special lists. ) When I selected, the spreadsheet
MEPN
as
I would normally do, I was met with an emtpy Tables screen --- instead
of
the usual possibility to filter the MEPN worksheet items. Pressing OK,
the
message said that my table (presumably MEPN) could not be opened.

Does using Excel filtering disable my use of Mail Merge? Does it
corrupt
the spreadsheet for use in Mail Merge? I worked with the
spreadsheet ---
turning on and off the filtering in Excel and got the same results in
Mail
Merge. I even copied the worksheet to another new workbook and got
similar
results. The table could not be opened. What I believe does work as
a
workaround is to copy the content and paste it in a new workbook. Then
I
use
that new workbook with Mail Merge. Is there anyway to redeem my
original
worksheet so that I nullify the results of the filtering? I have done
some
searching. Is this problem discussed somewhere on the Web?

Thanks.

BettleB




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
VB code for filtering mail merge Bev Mailmerge 4 June 13th 06 10:50 PM
Filtering in Mail Merge Labels Word 2000 DannyJ Mailmerge 1 May 19th 05 07:46 AM
Filtering does not work from Excel - changed conditions by random Gunder Mailmerge 1 March 22nd 05 10:01 PM
Mail Merge - Filtering data Louise Mailmerge 0 January 31st 05 03:41 PM
Mail merge error occurs when filtering Excel data source Dave Mailmerge 1 December 2nd 04 11:46 PM


All times are GMT +1. The time now is 12:01 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright 2004-2019 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.