Copying all

Hi,
Can someone confirm if the following is possible please, and ideally provide a code sample of how it could be achieved.
I have some code which builds up a document. This contains tables and formatting.
Once this is create I would like to select everything within the word document, then do the equivalent of ‘ctrl+enter’ to move to fresh page then copy the content – thus creating a duplicate pages.
I then need to search a for string in the copied pages only and replace with some other text
Is the achievable?
Thanks.

Hi Andrew,

Thanks for your inquiry. You may create another copy of your document, find and replace required strings and finally append that document to original document. Please check following documentation links for sample code and details. Hopefully, it will help you to accomplish the task.

Best Regards,