General information
Category:
COM/DCOM and OLE Automation
Hi Sylvain,
As far as I see, for some reason in the created mailmerge document each section has chr(12) at the text very end. It is an additional page break, and you do not have it in the original document.
I do not know where this chr(12) is coming from. At least I checked my similar mailmerge documents, and I did not discover chr(12) at the end of sections. So, probably it is coming somehow from the method you used to create the mailmerge document.
It would be good to know why this additional page break appears, but for now you can quickly fix the problem while shifting the end of selection:
oword.Activedocument.Sections(3).Range.Select
oWord.Selection.End=oWord.Selection.End - 1
oword.ActiveDocument.PrintOut(,,1)
Good Luck
>I've sent you the documents by email.
>
>>Not at the moment. Probably it depends on how this blank page has been created in the original document. And probably it is more easy to control it in the original document before creating a mailmerge.
>>Anyway, it would make things easy for me to review your document first.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only