Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBA - Create Word doc with Table and Heading Row

Status
Not open for further replies.

PatrickEllisUK

Programmer
Joined
Mar 8, 2004
Messages
1
Location
GB
My Access application programmatically creates a Word document based on a template which itself has a Table. Table properties include "Repeat as header row at top of each page" ticked for Row 1.

The application then programmatically adds rows to the table. All works perfectly except that the table header row is NOT repeated on subsequent pages.

Anyone any ideas please?
 
Hi Patrick,

Your Word code should look something like:
ActiveDocument.Tables(1).Rows(1).HeadingFormat = True

Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top