View Single Post
 
Old 08-08-2021, 06:59 PM
Guessed's Avatar
Guessed Guessed is offline Windows 10 Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,185
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

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
Reply With Quote