Thanks very much. That worked a treat. However, when I open one for the
documents and go to templates and add-ins to attach my template, the box is
greyed out, as if it were still a template. Do you know of a work-around for
this?
Melissa was telling us:
Melissa nous racontait que :
> Thanks very much. That worked a treat. However, when I open one for
> the documents and go to templates and add-ins to attach my template,
> the box is greyed out, as if it were still a template. Do you know
> of a work-around for this?
Yes, sorry about this; I should not have used "Documents.Open" with
Templates...
Replace
Set myDoc = Documents.Open(PathToUse & myFile)
by
Set myDoc = Documents.Add(PathToUse & myFile)

Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org
Melissa - 15 Apr 2007 23:52 GMT
Thank you very much. That worked perfectly. If you have the time, can you
please explain why Documents.Add created the doc without the templates and
add-ins greyed out, but Documents.Open did not, or direct me to a site that
might explain it.
> Melissa was telling us:
> Melissa nous racontait que :
[quoted text clipped - 11 lines]
> by
> Set myDoc = Documents.Add(PathToUse & myFile)
Jonathan West - 16 Apr 2007 11:06 GMT
> Thank you very much. That worked perfectly. If you have the time, can
> you
> please explain why Documents.Add created the doc without the templates and
> add-ins greyed out, but Documents.Open did not, or direct me to a site
> that
> might explain it.
It is a idiosyncrasy of Word. You can never "Save As" a template as a
different file type. But you can create a new document based on a template,
and save that new document. The Documents.Add method is the VBA equivalent
of creating a new document based on a template.

Signature
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org