No that's not what I meant. See
Installing Macros
With the document open, the code should be in a new module of the document project. If the button is on the QAT (Quick Access Toolbar) then you will have to delete that button and create a new one.
To create a template simply save the document as a macro enabled template. This will not overwrite your document, but create a new template from that document.