Do you need this in Word or would a PDF output work for you? Printing a range to PDF will give you an exact extract.
Staying in Word, the simplest way is to SaveAs to produce a duplicate file and then delete content before and after the desired range. Even then there are issues to be aware of. For instance, the page setup and header/footers might change if there are section breaks after the desired range so you might want the code to handle that scenario. Cross-refs may break and autonumbered items may change numbers, figures or table numbers restart etc.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
|