tags:

views:

368

answers:

1

I have a word document that starts with a table of context. I need to break up the document into sections based on the table of context. The table of context has a section title and section number. How can I use macros to split the document based on the section numbers/ name?

A: 

If these truly are Sections in the Word sense, then you can access the Sections collection in the ActiveDocument object. Each Section can then be copied to a new document and saved. If your sections are actually header levels or something similar, your macro can search for the heading style for the correct heading level, select the section under the heading, and save the selection to a new document as above.

Ken Paul