Have you set a reference to the Word Object Library? See under Tools|References in the VBA Editor.
Cheers Paul Edstein [Fmr MS MVP - Word]
Forum Rules