作者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