windows窗体应用程序,操作Excel,"无法创建ActiveX组件" 求指点啊指点
Dim excelApp As Microsoft.Office.Interop.Excel.Application Dim excelWorkbook As Microsoft.Office.Interop.Excel.Workbook '= NothingDim excelSheet As Microsoft.Office.Interop.Excel.Worksheet '= Nothing'excelApp = CType(CreateObject("Microsoft.Application"), Microsoft.Office.Interop.Excel.Application)excelApp = CreateObject("Microsoft.Office.Interop.Excel.Application")excelApp.Visible = TrueexcelWorkbook = excelApp.Workbooks.Open(OpenFileDialog1.FileName)excelApp.Workbooks.Add(True) excelSheet = excelWorkbook.Worksheets("sheet1")