- ©«¤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
|
¦^´_ 9# ui123
Java »y¨¥©|¥¼¤Jªù,À°¤£¤W¦£
¥u§ì¨ì100µ§¸ê®Æ- Sub Ex()
- Dim oXmlhttp As Object, oHtmldoc As Object, surl, r, c, E
- Set oXmlhttp = CreateObject("msxml2.xmlhttp")
- Set oHtmldoc = CreateObject("htmlfile")
- surl = "https://finance.yahoo.com/quote/AAPL/history?period1=1473638400&period2=1505174400&interval=1d&filter=history&frequency=1d"
- With oXmlhttp
- .Open "Get", surl, False
- .Send
- oHtmldoc.write .responseText
- End With
- With oHtmldoc
- Set E = .all.tags("table")(3)
- ActiveSheet.Cells.Clear
- For r = 0 To E.Rows.Length - 1
- For c = 0 To E.Rows(r).Cells.Length - 1
- Cells(r + 1, c + 1) = E.Rows(r).Cells(c).innertext
- Next
- Next
- End With
- Set oXmlhttp = Nothing
- Set oHtmldoc = Nothing
- End Sub
½Æ»s¥N½X |
|