heading row does not repeat

S

sirstephenh

word 9.0.6926 sp-3

i have a word document that comprises fifty tables.

i have made it so that if any of the tables breaks across a page the first
row of the table should be repeated at the top of the page.

(table -> table properties -> row -> repeat as header...)

i say should because it isn't. i've tried all the various views and even
printed the requisite pages but none of them have header rows.

is this a known problem with word?

are there other settings that could affect this?

many thanks,
 
G

Genine

If you have put manual page breaks in your tables then this splits the tables
and consequently the heading rows don't repeat on the new pages.
Check to see whether you have any hard page breaks in the tables, and
replace these with page break before on the formatting of one of the cells.
Genine
 
S

sirstephenh

there are no manual page breaks in the document.

several answers to other questions in this forum suggest that this is a bug
in word.

selecting (as i did) < table -> table properties -> row -> repeat as
header... > does not work at all, and only < table -> repeat as header > does.

is this correct?

there are fifty tables in the document. i'd rather not have to set this
property on each one indvidually. the recorded vba for the < table -> repeat
as header > action is:

Selection.Rows.HeadingFormat = wdToggle

this changes the HeadingFormat property but does not give headings that
repeat across pages.

any ideas?
 
S

sirstephenh

found it.

the following code sets the headingformat property to truwe and displays the
header rows on pages correctly.

Sub TableHeading()
Dim tblTemp As Table
For Each tblTemp In ActiveDocument.Tables
tblTemp.Rows.HeadingFormat = False
tblTemp.Rows(1).HeadingFormat = True
Next
End Sub

many thanks,

stephen.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top