As I've said, the code works for me. Perhaps your document has some form of corruption or there's a fault in your Office installation.
Corrupt documents can often be 'repaired' by inserting a new, empty, paragraph at the very end, copying everything except that new paragraph to a new document based on the same template (headers & footers may need to be copied separately), closing the old document and saving the new one over it.
A faulty Office installation can be repaired via Start > Windows Control Panel > Programs > Programs & Features > Microsoft Office (version) > Change>Repair.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|