vb.net 通过按钮打开一个本地Excel,实现不了,请指教
Imports Microsoft.VisualBasic.DateAndTimeImports System.Windows.Forms
Imports System.Data.OleDb
Imports Microsoft.Office.Tools.Excel
Imports Microsoft.Office.Interop.Excel.XlApplicationInternational Imports dao
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim ex = CreateObject("excel.application")
Dim exwBook As Excel.Workbook = ex.Workbooks.Open("D:\算工程数量\陈燕平精简表0425.xls")
Dim exSheet1 = exwBook.Worksheets(1) '按表序
End Sub
End Class