Right-click on the template, select Open.
Once the template opens, hold the Alt key down and hit the F11 key.
The VBA IDE will open and you can edit the code.
You might need to expand the project in the Project Explorer (Ctrl-R, if you don't see it) to find the module(s).