Hi
I am trying to force a page break into a table in an MS word template. This is what I have so far but it is putting the pagebreak after the table and not in the middle of the table.
any suggestions?
Set dc = vwRating.GetAllDocumentsByKey(highRating)
Set objTbl = worddoc.Tables.Add(worddoc.FormFields(“DetailedFindings”).Range, noOfRows, 1)
Set thisDoc = dc.GetFirstDocument
While Not thisDoc Is Nothing
objTbl.Cell(row,1).Range.Text = “3.” + Cstr(numbering)
row = row + 1
objTbl.Cell(row,1).Range.Text = “Ranking”
row = row + 1
objTbl.Cell(row,1).Range.Text = thisDoc.Ranking(0)
row = row + 1
word.Selection.InsertBreak wdPageBreak
Set thisDoc = dc.GetNextDocument(thisDoc)
numbering = numbering + 1
Wend
Thanks