Templates are .dotm, documents are .docm.
From your screenshot the code appears to be in your Normal.dotm, which is a template that only you have access to.
Your code uses
which refers to the document or template
that contains the code. To use the code with the current document use
instead.