Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
![]()
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\Admi ssions\Events\ visits\itinerary.doc", Visible:=True) WrdDoc.MailMerge.OpenDataSource Name:= _ "\\em\office\Admissions\Events\visits\itinerary.xl s", _ 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 -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...merge/200603/1 |
#2
![]()
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
![]()
bump
Has anyone been able to get a catalog merge through vba to work correctly on Word 2002 sp3? gary wrote: 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\Admi ssions\Events\ visits\itinerary.doc", Visible:=True) WrdDoc.MailMerge.OpenDataSource Name:= _ "\\em\office\Admissions\Events\visits\itinerary.xl s", _ 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 -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...merge/200603/1 |
Reply |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Word should catalog misspelled words to study. | Microsoft Word Help | |||
How can Word display full path of a file in the title bar? | Microsoft Word Help | |||
Does Word have a QuickCorrect/Quick Word option like WordPerfect? | New Users | |||
Underscore (_) will not always display in RTF files (Word 2002). | Microsoft Word Help | |||
Word 2002 and Word 2003 trading default file association | Microsoft Word Help |