View Single Post
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson
 
Posts: n/a
Default mailmerge create new doc

At which point it launches asecond non-mailmerge doc based on the
data/original doc.


Yes, that's because it is performing the merge with the output going to a
new document. If you just want it to go to a printer, use

objWord.MailMerge.Destination = wdSendToPrinter

somewhere before your .Execute line.

so if I delete these lines of code can
be sure that the merge document will contain updated data (assuming the
csv
is uptodate of course.


No, because then you are not doing the merge. All that happens is that your
mail merge main document is connected to the mail merge data source and if
the document is left open, the user will be able to "preview" the results.

( It isn't completely clear what overall result you are trying to achieve )

Peter Jamieson
"darren via OfficeKB.com" u11419@uwe wrote in message
news:5e9ff1533dced@uwe...
Hi

I'm using the MergeIt function off of the ms site to merge from a csv
file.
It appears to work OK until it gets to:

'Execute the mail merge.
objWord.MailMerge.Execute

At which point it launches asecond non-mailmerge doc based on the
data/original doc. Is this right, if so if I delete these lines of code
can
be sure that the merge document will contain updated data (assuming the
csv
is uptodate of course.

Thanks

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...merge/200604/1