Because the code doesn't care what's after .doc in the extension. Accordingly the code would also delete .docm files. If that's a problem, an extension test could be introduced to exclude those.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|