General information
Category:
COM/DCOM and OLE Automation
Hello
The way I use is to select the array header after build it, copy it, and paste each time you change page.
To know if you are on a new page, use Word.Selection.Information(wdVerticalPositionRelativeToPage). If The new Position is lower than the old one, you change the page
Before your ENDWITH at the end, insert something like this :
.Row(1).Select
oWord.ActiveDocument.Selection.Copy
#DEFINE wdVerticalPositionRelativeToPage 6
lnVPos = oWord.ActiveDocument.Selection.Information(wdVerticalPositionRelativeToPage)
SELECT TABLE
SCAN
IF lnVPos > oWord.ActiveDocument.Selection.Information(wdVerticalPositionRelativeToPage)
oWord.ActiveDocument.Selection.Paste
ENDIF
lnVPos = oWord.ActiveDocument.Selection.Information(wdVerticalPositionRelativeToPage)
&& Insert tour Row with your data
ENDSCAN
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