R
robert.waters
I have a document template containing my company's letterhead; in our
semi-automated system, we typically use this template for new Word
documents that require it to appear:
Dim w As word.Application
Set w = New word.Application
w.Documents.Add ("<letterhead template path>")
w.ActiveDocument.SaveAs ("newdoc.doc")
' do stuff
However, I am tasked with including the letterhead in pre-existing
documents that lack it. I have tried attaching the template to the
existing documents, using 'ActiveDocument.AttachedTemplate', which
true to it's name attaches the template to the document, but does not
insert the letterhead.
Does anyone know how I might go about programmatically inserting
letterhead, using a .dot template, into a pre-existing document? If
not, is there another method (perhaps using autotext entries)?
Thank you in advance.
semi-automated system, we typically use this template for new Word
documents that require it to appear:
Dim w As word.Application
Set w = New word.Application
w.Documents.Add ("<letterhead template path>")
w.ActiveDocument.SaveAs ("newdoc.doc")
' do stuff
However, I am tasked with including the letterhead in pre-existing
documents that lack it. I have tried attaching the template to the
existing documents, using 'ActiveDocument.AttachedTemplate', which
true to it's name attaches the template to the document, but does not
insert the letterhead.
Does anyone know how I might go about programmatically inserting
letterhead, using a .dot template, into a pre-existing document? If
not, is there another method (perhaps using autotext entries)?
Thank you in advance.