View Single Post
  #6  
Old May 1st, 2006, 12:51 PM posted to microsoft.public.word.tables
external usenet poster
 
Posts: n/a
Default Heading Rows Repeat / Includetext - XML -XSL

Hi Robert,

There are many linked tables in my document, and it is very time consuming
to locate each one in the document, and reset the "heading rows repeat"
setting. Is there a macro that could do this automatically for all tables in
the document.

Yes, this should be possible. Sample code to set the first row of each table to
repeat:

Sub SetHeadingRows()
For each tbl in ActiveDocument.Tables
tbl.Rows(1).HeadingFormat = True
Next
End Sub

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)