我引入的是:MicrosoftExcel11.0ObjectLibrary(EXCEL2003),你申明的时候写出名字空间全路径就应该没有问题了:privateMicrosoft.Office.Interop.Excel.ApplicationmyExcel1;privateMicrosoft.Office.Interop.Excel.WorkbookmyWorkbook1;privateMicrosoft.Office.Interop.