Reference
Also, it sounds like you might not have a reference set for Excel. Have you ran any of this code successfully yet?
Check your references. Open a code module, Tools, references and make sure you have a reference to Microsoft Excel.
If not, check the checkbox and try again.