You're welcome.
The Man from U.N.C.L.E. wrote:
insert a horizontal line ... and replace them
That sounds OK. Whatever you want to achieve, it probably can be done, but you'll have to manipulate the RTF string yourself. FYI: as always, the document Word generates is overly complex; WordPad does a much better job, assuming it allows you to enter what you need. When working with tables, I looked at what Word does, read the RTF specs, and created it all in code, I didn't want hundreds of lines of initialization (and it gets worse in every new Office version). :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read formatted code with indentation, so please use PRE tags for code snippets.
I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).