Which code? For:
https://www.msofficeforums.com/87989-post3.html , simply copy the code from the post and paste it into your document's 'ThisDocument' code module. For
https://www.msofficeforums.com/38461-post10.html and
https://www.msofficeforums.com/145675-post4.html , simply open whichever of those documents' code you want to use and copy the code from its 'ThisDocument' code module and paste it into your document's 'ThisDocument' code module.
In each case, you can access the relevant document's 'ThisDocument' code module by pressing Alt-F11 and clicking on that document's 'ThisDocument' code module in the pane on the left side of the screen.