Have you set a reference to the Word Object Library? See under Tools|References in the VBA Editor.