If the code is in a template, ThisDocument, will refer to the template, not to the ActiveDocument. Presumably, the template's bookmark would be empty. Also, how are you populating the bookmarks? When people do this programmatically, the text typically gets inserted after the bookmark, not in it. For code to populate a bookmark, see:
https://www.msofficeforums.com/word-...html#post67058