The code is working fine; the problem is with the table.
What your table has is a bunch of rows that have been configured to not break across pages. With the very tall rows, some of which are more than the page height, not only is this preventing the grey 'heading' rows from keeping with them but those rows are being cut off at the bottom of their pages.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|