- ©«¤l
- 78
- ¥DÃD
- 30
- ºëµØ
- 0
- ¿n¤À
- 109
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- XP
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2014-5-15
- ³Ì«áµn¿ý
- 2018-9-16
|
Option Explicit
Sub Ex()
Dim i As Integer, E As Object, C As Integer, Sh As Worksheet
With CreateObject("InternetExplorer.Application")
.Visible = True
.Navigate "http://www.goodinfo.tw/stockinfo/ShowK_Chart.asp?STOCK_ID=2454&CHT_CAT2=WEEK"
Do While .Busy Or .ReadyState <> 4: DoEvents: Loop
With .document
Do
If .all.tags("table").Length >= 16 Then Exit Do
DoEvents
Loop
Set Sh = ActiveSheet
Sh.UsedRange.Clear
For Each E In .all.tags("table")(16).Rows
i = i + 1 '
For C = 0 To E.Cells.Length - 1
Sh.Cells(i, C + 1) = E.Cells(C).innertext
Next
Next
With Sh
For i = 21 To .Range("A" & Rows.Count).End(xlUp).Row Step 18
.Cells(i, "A").Resize(2).EntireRow.Delete
Next
End With
End With
.Quit 'Ãö³¬ºô¶
End With
End Sub
§Ú·Q§ì³o¸ê®Æhttp://www.goodinfo.tw/stockinfo/ShowK_Chart.asp?STOCK_ID=2330&CHT_CAT2=WEEK
¤U±ªº
¥æ©ö
¶g§O ¥æ©ö
¤é¼Æ ¶}½L ³Ì°ª ³Ì§C ¦¬½L º¦¶^ º¦¶^(%) ¦¨¥æ±i¼Æ ¦¨¥æª÷ÃB ªk¤H¶R½æ¶W(¤d±i) ¥~¸ê«ùªÑ (%) ¿Ä¸ê(¤d±i) ¿Ä¨é(¤d±i) ¨é¸ê ¤ñ
(%)
¤d±i ¤é§¡ »õ¤¸ ¤é§¡ ¥~¸ê §ë«H ¦ÛÀç ¦Xp ¼W´î ¾lÃB ¼W´î ¾lÃB
ªí®æ ½Ð°ÝþÃä §ï¿ù¤F
½ÐÀ°§Ú«üÃÒ¤@¤U
ÁÂÁÂ |
|