Thanks Pravin, I've attached the code to a button, but I've a couple of
questions.
"Chapterstyle" I presume is the style of the heading? I've tried it
with the custom style I use (called "A_Heading1") but the code falls
over when it reaches it. When I change the style to standard "Heading
1", and used that in the code the code runs. Not sure why this should
be.
Second, I'm still not sure how I should deal with this code. I can run
it, but what is it suppposed to produce? I can't see how I can get it
to output the information I need. You say I can "get all Titles", but
how do I display them?
Sorry if this is a dumn question. I'm pretty new to this stuff.
Will