How to split word by bookmarks?

There are many module bookmarks in word, and the name of the bookmark starts with Po. There are many other bookmarks in the module bookmarks, and the relationship between the other bookmarks is parent-child relationship(module Bookmarks are peer relations). now, how to split them into sub-documents one by one according to the module bookmarks?

@echozhum,

To ensure a timely and accurate response, please ZIP and attach the following resources here for testing:

  • Your simplified input Word document containing bookmarks
  • Your expected document(s) showing the correct output(s). You can create expected document(s) by using MS Word 2019.

As soon as you get these pieces of information ready, we will start investigation into your scenario and provide you more information. Thanks for your cooperation.

file.zip (61.0 KB)

@awais.hafeez

@echozhum,

Please tell if you are able to achieve this by using the code mentioned in the following article?
Extract Content from a Bookmark