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 / March 2006

Tip: Looking for answers? Try searching our database.

Word 2002 sp3 breaking catalog merge

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
gary - 21 Mar 2006 00:57 GMT
I'm using vba to automate a catalog merge code works fine for Word 2002 sp2,
but when I try it on Word 2002 sp3 the catalog merge does page breaks for
eachj section instead of all on one page.

Set WrdDoc = appWord.Documents.Open(FileName:="\\em\office\Admissions\Events\
visits\itinerary.doc", Visible:=True)
   
   WrdDoc.MailMerge.OpenDataSource Name:= _
       "\\em\office\Admissions\Events\visits\itinerary.xls", _
       ConfirmConversions:=False, ReadOnly:=False, LinkToSource:=True, _
       AddToRecentFiles:=False, PasswordDocument:="", PasswordTemplate:="",
_
       WritePasswordDocument:="", WritePasswordTemplate:="", Revert:=False,
_
       Format:=wdOpenFormatAuto, Connection:="", SQLStatement:="select *
from [Itinerary_View]"
       
   appWord.Visible = True
 
   
 
   With WrdDoc.MailMerge
        .Destination = wdSendToNewDocument
       .SuppressBlankLines = True
   End With
   
   'Perform the Merge
   WrdDoc.MailMerge.Execute Pause:=False
   
After I try it on a SP3 machine it corrupts the word document so that it page
brekas even on a sp2 machine.  Anyone got any ideas?

Thanks,

Gary
noar - 21 Mar 2006 23:54 GMT
<bump>

Has anyone been able to get a catalog merge through vba to work correctly on
Word 2002 sp3?

>I'm using vba to automate a catalog merge code works fine for Word 2002 sp2,
>but when I try it on Word 2002 sp3 the catalog merge does page breaks for
[quoted text clipped - 31 lines]
>
>Gary
 
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.