- ©«¤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
|
¦^´_ 3# sleepycat
¥ÎVBA ¸Õ¸Õ¬Ý- Option Explicit
- Sub Ex()
- Dim xlVbTable As Object, Ar, R As Integer, C As Integer
- With CreateObject("InternetExplorer.Application")
- .Visible = True
- .Navigate "http://jsjustweb.jihsun.com.tw/z/ze/zeg/zeg_23.djhtm"
- Do While .Busy Or .ReadyState <> 4: DoEvents: Loop
- Set xlVbTable = .document.getelementsbytagname("table")(27)
- Ar = Split(xlVbTable.Rows(0).Cells(0).innerText, Chr(10))(1)
- With ActiveSheet
- .Cells(1, 1) = Mid(Ar, 1, InStr(Ar, ":"))
- .Cells(1, 2) = Mid(Ar, InStr(Ar, ":") + 1, 6)
- For R = 1 To xlVbTable.Rows.Length - 1
- For C = 0 To xlVbTable.Rows(1).ALL.Length - 1
- .Cells(R + 1, C + 1) = xlVbTable.Rows(R).Cells(C).innerText
- Next
- Next
- End With
- .Quit
- End With
- End Sub
½Æ»s¥N½X |
|