作者daviddoffabc (當我孤單想找人陪)
看板Visual_Basic
標題[.NET] 如何運用VB.NET讀取EXCEL某一欄位的資料
時間Sat Nov 19 18:50:13 2005
Dim oExcel As Object
Dim oBook As Object
Dim oSheet As Object
'Start a new workbook in Excel
oExcel = CreateObject("Excel.Application")
oBook = oExcel.Workbooks.open("c:\book1.xls")
oSheet = oBook.Worksheets(1)
oExcel.visible = True
oExcel.workbooks.Range("A1").value = "John"===>出現錯誤訊息
oExcel.Quit()
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.130.178.102