2012年7月24日 星期二

EXCEL VBA Worksheets

前言:使用VBA程式去抓取A17儲存格資料;

txt=Worksheets("日報表").Cells(17, 1).value
結果 = 篩號
1.
txt=Worksheets("日報表").Cells(23, 4).value
結果 = 95

VB.NET 寫法:
Dim excelapp As Object
excelapp = GetObject(, "Excel.Application")
MsgBox(excelapp.Worksheets("日報表").Cells(17, 1).value)
excelapp = Nothing

ahorng
延伸閱讀: 使用word開啟網頁資料,可以將網頁下載存成WORD檔.

沒有留言:

Search Google

Google

熱門文章