dim oExcel as new excel.application

Every time a new project is created and use the above line it works fine. But if I remove the excel 9.0 reference and add it again then the above line does not work. It gives the error excel,application is not defined.
What is going on?

Thank u