Macro-enabled files in Word 2007 & later require saving in the docm & dotm formats, not docx & docm. So you'd need to change both the extension and the FileFormat to match, using wdFormatXMLDocumentMacroEnabled for documents and wdFormatXMLTemplateMacroEnabled for templates. Ordinary templates, btw, should be saved using wdFormatXMLTemplate.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|