2003-08-14, 07:37 #1
- Join Date
- Jul 2002
- Princes Risborough, Buckinghamshire, England
- Thanked 0 Times in 0 Posts
Repeating Table Header rows (VBA/Word 2000/2)
Anyone know the Word Object model equivalent of this setting:
Table > Table Properties > Row > Repeat as Header row at the top of each page
I've looked at the Table and Row objects but can't see anything that obviously matches.
Subscribe to our Windows Secrets Newsletter - It's Free!
Get our unique weekly Newsletter with tips and techniques, how to's and critical updates on Windows 7, Windows 8, Windows XP, Firefox, Internet Explorer, Google, etc. Join our 480,000 subscribers!
+ Get this BONUS — free!
Get the most of Excel! Learn about new features, basics of creating a new spreadsheet and using the infamous Ribbon in the first chapter of Excel 2013: The Missing Manual - Subscribe and download Chapter 1 for free!
2003-08-14, 07:56 #2
- Join Date
- Mar 2002
- Thanked 15 Times in 15 Posts
Re: Repeating Table Header rows (VBA/Word 2000/2)
Recording a macro is a good way to find out which property is used for this. It turns out to be HeadingFormat. Look it up in the online help index for VBA. Example:
ActiveDocument.Tables(1).Rows(1).HeadingFormat = True
(you can also set it to False, or to wdToggle to flip the value)