Have you checked where the code is generating the error? For example, I doubt this line would work:
Kill "D:\Metadata\" & (ActiveDocument.Name) & ".DOCX"
since ActiveDocument.Name will return the Active Document's name, including the extension...
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|