- ©«¤l
- 154
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 200
- ÂI¦W
- 1
- §@·~¨t²Î
- windwos 7
- ³nÅ骩¥»
- 64bit
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2017-5-29
- ³Ì«áµn¿ý
- 2025-1-1
|
¦^´_ 1# verify9k
GBKEE¤j,¼gªº«Ü¦hie½d¨Ò¤]¥i¥H¥Î,µ{¦¡½Xªø«×¸ò QueryTables.Add®t¤£¦h,²³æ©öÀ´
Sub Ex()
Dim R As Integer, C As Integer
With CreateObject("InternetExplorer.Application")
.Visible = True
.Navigate "https://goodinfo.tw/StockInfo/ShowSaleMonChart.asp?STOCK_ID=2330"
Do While .Busy Or .ReadyState <> 4: DoEvents: Loop
With .Document.all.tags("table")(21)
For R = 0 To .Rows.Length - 1
For C = 0 To .Rows(R).Cells.Length - 1
ActiveSheet.Cells(R + 1, C + 1) = .Rows(R).Cells(C).innerText
Next
Next
End With
.Quit
End With
End Sub |
|