A family of Microsoft word processing software products for creating web, email, and print documents.
Better if you declare a Range variable and set it to the .Range of the \Section bookmark and then move the end of the Range back one space so that it does not include the Section Break and then set the Range of the new document to the FormattedText of the Range variable. The you do not have to try and manipulate the selection in the new document.
Alternatively use the Merge to Individual documents facility on my Merge Tools Add-in that is contained in the MERGE TOOLS ADD-IN.zip file that you can download from the following page of my One Drive:
Extract the files from the archive and read
“READ ME – Setting up and using the Merge Tools Add-in.docx
to see how to install and use the various tools.
Using those tools, it is possible to perform the following types of merge that cannot be done with Mail Merge “out-of-the-box”:
- Merge to e-mail messages either with or without attachments, with the documents created by the merge being sent as either Word or PDF attachments or as the body of the e-mail message.
- Merge to individual documents in either Word or PDF format with the filenames being supplied by the data in one of the fields in the data source
- Many to One type merges, which can be used for creating documents such as invoices where there are multiple records in the data source that have common data in one of the fields
- Merging to a document that will include a chart that is unique to each record in the data source
- Merging a document with Content Controls
- Merging a document that contains Legacy FormFields
- Duplex Merges
- Merging to a printer that will collate and staple the output created from each record in the data source.