项目-添加引用-.NET 里面找到Microsoft.Office.Interop.Excel然后程序代码中:Imports Microsoft.Office.Interop.ExcelImports Microsoft.Office.InteropImports Microsoft.Office