As I have already said, this forum is
not a free coding service. Furthermore, a simple search of these forums will return examples of documents coded to do essentially what you are asking for. See, for example:
https://www.msofficeforums.com/word-...selection.html
I do not see from your posts to date or from your attachment that you have made any effort to implement the code examples that are already available. When you're ready to give evidence that you have at least tried to do something meaningful and you need help with a particular aspect of the code, post back with your code and the specific details of what aspects of it you need help with.