- ©«¤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
|
¦^´_ 27# iorikoyzz
³oºô¶ ¥ÎQueryTablesµL®Ä
¸Õ¸Õ¬Ý- Option Explicit
- Sub §ì¨C¤ëÀ禬(weburl As String)
- Dim i As Integer, E As Object, K, R
- Sheets("Temp").Activate
- ActiveSheet.Cells.Clear
- With CreateObject("InternetExplorer.Application")
- .Visible = True 'Åã¥Üºô¶
- .Navigate weburl
- Do While .Busy Or .readyState <> 4: DoEvents: Loop
- Set E = .Document.all.TAGS("TABLE")(0)
- K = 1
- For Each R In E.Rows
- For i = 0 To R.Cells.Length - 1
- ActiveSheet.Cells(K, i + 1) = R.Cells(i).INNERTEXT
- Next
- K = K + 1
- Next
- .Quit 'Ãö³¬ºô¶
- End With
- End Sub
½Æ»s¥N½X |
|