Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
gary via OfficeKB.com
 
Posts: n/a
Default Word 2002 sp3 breaking catalog merge

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   Report Post  
Posted to microsoft.public.word.mailmerge.fields
noar via OfficeKB.com
 
Posts: n/a
Default Word 2002 sp3 breaking catalog merge

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

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Word should catalog misspelled words to study. rndthought Microsoft Word Help 39 May 21st 23 02:47 AM
How can Word display full path of a file in the title bar? SAsif Microsoft Word Help 1 January 26th 06 04:32 PM
Does Word have a QuickCorrect/Quick Word option like WordPerfect? CW New Users 2 December 20th 05 05:54 PM
Underscore (_) will not always display in RTF files (Word 2002). David A Edge Microsoft Word Help 6 June 14th 05 10:39 AM
Word 2002 and Word 2003 trading default file association Enochscion Microsoft Word Help 2 May 27th 05 10:19 PM


All times are GMT +1. The time now is 01:49 PM.

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"