Did you type the code or did you paste it?
Attached is a zip folder with a .dotm template in it that your can use as an Add-In to run the macro.
Remove or copy the template from the zip file and place it in your
Word Startup Folder. You should be able to run the macro next time you start Word.