- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¥»©«³Ì«á¥Ñ GBKEE ©ó 2020-5-10 15:20 ½s¿è
¦^´_ 3# t8899
- Option Explicit
- Sub Ex()
- Dim R As Integer, C As Integer
- With New InternetExplorer '**³]©w¤Þ¥Î¶µ¥Ø¥[¤J--> Microsoft Internet Controls***
- .Visible = True
- .Navigate "https://pchome.megatime.com.tw/rank/sto0/ock03.html"
- Do While .Busy Or .ReadyState <> 4: DoEvents: Loop
- '<table style="margin-top: 10px;" cellspacing="1" cellpadding="0" **ºô¶ªº¤º®e**
- With .Document.querySelector("table[style='margin-top: 10px;'][cellspacing='1'][cellpadding='0']")
- '' With .Document.all.tags("table")(0) '** ¤]¥i¥H
- 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
½Æ»s¥N½X |
|