How to delete everything outside a bookmark

file1.zip (32.5 KB)

Please see the sample in the attachment. “Input_word.docx” is the source file. You only need to save the bookmark “po_bk001” , and output the file output_po_bk001.docx

@echozhum,

You can meet this requirement by using the code from the following article:
Extract Content from a Bookmark