This content has been marked as final. Show 3 replies
Is the heading 4 tag only in the cells where you want the table to break? Is only the one cell populated in each of those rows?
If your table is similar to this:
Row 1, cell1 header text
Row 2, all columns with data
Row 3 etc as row 2
Row 12 (example) 2nd header text
and so on, the following macro will find each header, select the row, convert tabe to text, re-apply the heading level.
You can specify the heading level you want.
Selection.Find.Style = ActiveDocument.Styles("Heading 4")
Do While Selection.Find.Execute
Selection.Rows.ConvertToText Separator:=wdSeparateByTabs, NestedTables:=True
'Change the heading level here to what you require
Selection.Style = ActiveDocument.Styles("Heading 4")
Place the macro in your template .dot file.
Open the document and run the macro.
Hope this helps,
PS. If you are not sure about installing the macro, see this article.
Thanks for your help and please excuse the late reply. I had to suscribe with a new login now because my old account somehow vanished..