In the VBE, go to Tools > References, then scroll down and check Microsoft Word 8.0 Object Library.