Reply
 
Thread Tools Display Modes
  #1   Report Post  
Marty
 
Posts: n/a
Default Why do I get 2 copies?

Hi- I have Word97. I am running a mail merge using VBA code. When the data
are merged, I get 2 identical copies of my document. (Each is 18 pages long.)
I only call the WordBasicMailmerge routine once. Where is the second copy
coming from? What could be causing it to happen?
Thanks in advance for looking at this.

-Marty
  #2   Report Post  
Charles Kenyon
 
Posts: n/a
Default

It would be helpful to actually see the code that is giving you problems.
You may want to post it in the vba.beginners or the word97vba newsgroup.
--

Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.

"Marty" wrote in message
...
Hi- I have Word97. I am running a mail merge using VBA code. When the data
are merged, I get 2 identical copies of my document. (Each is 18 pages
long.)
I only call the WordBasicMailmerge routine once. Where is the second copy
coming from? What could be causing it to happen?
Thanks in advance for looking at this.

-Marty



  #3   Report Post  
Marty
 
Posts: n/a
Default

Charles-

That sounds like it would be helpful. But I do not see either of those
groups. Where do I find them?

Thanks, again,

Marty

"Marty" wrote:

Hi- I have Word97. I am running a mail merge using VBA code. When the data
are merged, I get 2 identical copies of my document. (Each is 18 pages long.)
I only call the WordBasicMailmerge routine once. Where is the second copy
coming from? What could be causing it to happen?
Thanks in advance for looking at this.

-Marty

  #4   Report Post  
Doug Robbins
 
Posts: n/a
Default

Post it here if you can't find them.

--
Please respond to the Newsgroup for the benefit of others who may be
interested. Questions sent directly to me will only be answered on a paid
consulting basis.

Hope this helps,
Doug Robbins - Word MVP
"Marty" wrote in message
...
Charles-

That sounds like it would be helpful. But I do not see either of those
groups. Where do I find them?

Thanks, again,

Marty

"Marty" wrote:

Hi- I have Word97. I am running a mail merge using VBA code. When the
data
are merged, I get 2 identical copies of my document. (Each is 18 pages
long.)
I only call the WordBasicMailmerge routine once. Where is the second copy
coming from? What could be causing it to happen?
Thanks in advance for looking at this.

-Marty



  #5   Report Post  
Marty
 
Posts: n/a
Default

I'm posting the code here until I can navigate to the vba group.

When the code below is called, I get 2 complete documents generated:


WordBasic.MailMergeMainDocumentType 0
WordBasic.MailMergeOpenDataSource Name:="", ConfirmConversions:=0,
ReadOnly:=0, LinkToSource:=0, AddToMru:=0, PasswordDoc:="", PasswordDot:="",
Revert:=0, WritePasswordDoc:="", WritePasswordDot:="",
Connection:="DSN=GAVURAH;UID=sa;PWD=;APP=Microsoft
Query;WSID=SHIVAINDRA;LANGUAGE=us_english;DATABASE =lp_patents",
SQLStatement:="execute splp_lppci_US " & Chr(34) & OrderLetterNumber &
Chr(34), SQLStatement1:=""
WordBasic.MailMerge CheckErrors:=1, Destination:=0, MergeRecords:=0,
From:="", To:="", Suppression:=0, MailMerge:=1, MailSubject:="",
MailAsAttachment:=0, MailAddress:=""


Thanks, Marty


"Doug Robbins" wrote:

Post it here if you can't find them.

--
Please respond to the Newsgroup for the benefit of others who may be
interested. Questions sent directly to me will only be answered on a paid
consulting basis.

Hope this helps,
Doug Robbins - Word MVP
"Marty" wrote in message
...
Charles-

That sounds like it would be helpful. But I do not see either of those
groups. Where do I find them?

Thanks, again,

Marty

"Marty" wrote:

Hi- I have Word97. I am running a mail merge using VBA code. When the
data
are merged, I get 2 identical copies of my document. (Each is 18 pages
long.)
I only call the WordBasicMailmerge routine once. Where is the second copy
coming from? What could be causing it to happen?
Thanks in advance for looking at this.

-Marty




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
trouble printing mulitple copies d2of5 Microsoft Word Help 3 February 10th 05 06:06 PM
Why get multiple copies of file when try to delete ucsd Microsoft Word Help 2 January 17th 05 05:07 PM
Printing Defaults - # of Copies Dawn Page Layout 4 January 12th 05 09:43 PM
number of copies defaulted at 2 JasonC Microsoft Word Help 1 December 16th 04 07:55 PM
When I print a document I get 5 copies instead of the expected 1.. Word Heretic Microsoft Word Help 0 November 24th 04 07:30 AM


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