Hi flds,
Quote:
|
Appendix A, Appendix B, Appendix C etc. are separate in a line, following lines contain the text.
|
OK, but does the first appendix Section begin with the word 'Appendix', or is there something else on the page before that (eg an empty paragraph or some other text)? The code I've provided is, as I've said before, predicated on the the first word in the first appendix Section being the word 'Appendix' (in any upper/lower case form).
The code in your last post seems intended to produce a document with a list of headings. Is that substantively different to what you'd get by simply exporting the Table of Contents as plain text to another document? How much of the source document should be included? If it's run before the Table of Contents is deleted and any of the sub-documents are created, you'll something based on the entire source document, but if it's run afterwards, you'll only get what's in the 'text' document. In between, you could get something that, say, excludes any headings on the Title page and in the Revision History.