Smoothcat74
Technical User
- Aug 29, 2008
- 40
Hi all!
I have a simple VBA macro in Word 2010 that is designed to apply a template to an existing document. The template is simple and contains only a .jpg image in both the header and footer (to mimic the client's letterhead). However, when I apply the template to an existing document, the header/footer do not appear. If I click "Document Template" in the developer tab, I can clearly see that the current template is my custom one, but it shows no changes to the active document.
If I open a new document based on the template, the header/footer display normally. Here is my oh-so-complex code:
I have a simple VBA macro in Word 2010 that is designed to apply a template to an existing document. The template is simple and contains only a .jpg image in both the header and footer (to mimic the client's letterhead). However, when I apply the template to an existing document, the header/footer do not appear. If I click "Document Template" in the developer tab, I can clearly see that the current template is my custom one, but it shows no changes to the active document.
If I open a new document based on the template, the header/footer display normally. Here is my oh-so-complex code:
Code:
Sub Add_Letterhead()
ActiveDocument.AttachedTemplate = "Client_Letterhead.dotm"
End Sub