Since you have cross-posted, please provide links to the other forum from here and, at the other forum, links to here.
For cross-posting etiquette, please read:
http://www.excelguru.ca/content.php?184
PS: There is nothing in that code to indicate a problem with the table creating or heading rows. However, there is also no indication of whether the table thus created spans a page boundary.