It appears you are coming from ground zero in terms of using macros. How about you start with this for the basics
Getting to grips with VBA basics in 15 minutes
I would also recommend you watch some youtube videos to get an understanding of what is involved in recording, editing and using VBA with Word.
https://www.youtube.com/results?sear...Microsoft+Word
Once you are comfortable with the VBA Editor and basic coding, the code you are looking for will be in the ThisDocument module of the template.