Change the code to
Code:
Sub SubstitutePage()
ActiveDocument.Content.Delete
ActiveDocument.AttachedTemplate.AutoTextEntries("a ne").Insert _
Where:=ActiveDocument.Range, _
RichText:=True
End Sub
However why not simply create a template with the required text already present and create the new documents with the required content from that?