![]() How to enable 'Repeat Header Rows' in a Word Table from VBA?: wd.ActiveDocument.Tables(1).Rows(1). To get around this problem, dont insert a manual page break in the table to force a row to a new page. ![]() The rows that were repeating are no longer in the new table, but in the original table. This works, but I need to do this programmatically. The reason for this is rather simplewhen you insert a page break into a table you are, in reality, splitting the table into two separate tables. Word 2013 & 2016 – Table ‘repeat header row’ not working – IT Support Guides: Select the table (or place the cursor into any cell on the first page of the table (This is my own finding)), then on Table Tools->Layout ribbon pane, deselect and reselect Repeat Header Rows. ![]() The solutions found on the Net say the following: The data rows appear fine but the header row is not repeated on the following pages despite the setting. In a VBA script (from Excel via Word.Application if that matters), I add many data rows like the following, so that the table becomes larger than a page: Dim table as Word.table In a Word template, I have a table template consisting only of a header row, with "Allow row to break across pages" unset and "Repeat as header row at top of each page" set:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |