It's unclear to me whether your users are saving a copy of the template to the same folder in which they save a copy of the file? In other words, for every file they make, they also make a copy of the template??
My understanding is that DOCM files cannot contain building blocks; only templates can. Unless I'm wrong, what I would do is modify your macros per the code below:
Code:
Sub CustomizeLocalFilepathsToUsername() ' 03/18/2022
' Create a variable for the filepath to your template:
Dim strFilepath As String
' Use the Environ("UserProfile") function to get the first portion of the
' user's file path -- that is, C:\User\username -- and concatenate with the
' rest of the path to your template in the STARTUP folder:
strFilepath = Environ("UserProfile") & _
"\AppData\Roaming\Microsoft\Word\STARTUP\IT GATu 2.dotm"
' Here's what the full string looks like:
Debug.Print strFilepath
' You need to run this line to access your template's building blocks:
Application.Templates.LoadBuildingBlocks
' Modify the building-block paths in your template by replacing the hard-
' coded paths to the template with the "strFilepath" variable:
Application.Templates(strFilepath).BuildingBlockEntries("HOME AND EXPOSURE").Insert _
Where:=Selection.Range, RichText:=True
End Sub
Next, have your users save a copy of the template -- that is, the DOTX file -- to their Startup folder:
C:\Users\%username%\AppData\Roaming\Microsoft\Word \STARTUP
Note that your users won't be able to create new documents based on this template if you put it here. If they need to do that, then it'd be better to store the template in their default templates location, which, unless they've changed the default location, is here:
C:\Users\%username%\AppData\Roaming\Microsoft\Temp lates
If you're going to have your users store the template here, modify the code above with this path, not the STARTUP path...