- ©«¤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
|
¦^´_ 10# bioleon69 - Option Explicit
- Sub Ex_ºô¶¤¸¯À()
- Dim i As Integer, xlTab As Object, R As Integer, C As Integer, Surl$
- If Sheets("¤u§@ªí1").[A1] = "" Then MsgBox "½Ð¿é¤J¥¿½TªÑ²¼¥N¸¹": Exit Sub
- Surl = "http://www.cmoney.tw/finance/f00026.aspx?s=" & Sheets("¤u§@ªí1").[A1]
- With CreateObject("InternetExplorer.Application")
- .Visible = False
- .Navigate Surl
- Do While .Busy Or .readyState <> 4: DoEvents: Loop
- Set xlTab = .Document.ALL.tags("TABLE")(0)
- If Not xlTab Is Nothing Then
- With ActiveSheet
- .UsedRange.Clear
- For R = 0 To xlTab.Rows.Length - 1
- For C = 0 To xlTab.Rows(R).Cells.Length - 1
- .Cells(R + 1, C + 1) = xlTab.Rows(R).Cells(C).innertext
- Next
- Next
- End With
- Else
- MsgBox "½Ð¿é¤J¥¿½TªÑ²¼¥N¸¹"
- End If
- .Quit 'Ãö³¬ºô¶
- End With
- End Sub
½Æ»s¥N½X |
|