- ©«¤l
- 1572
- ¥DÃD
- 16
- ºëµØ
- 2
- ¿n¤À
- 1521
- ÂI¦W
- 0
- §@·~¨t²Î
- xp
- ³nÅ骩¥»
- office 2003
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2016-1-13
|
- Sub Stock_Data()
- Dim STK_NO As String, url As String
- STK_NO = Sheets("Result").Cells(3, "B")
- If STK_NO = "" Then Exit Sub
- url = "http://www.google.com/finance/historical?q=TPE%3A" & STK_NO & "&start=0&num=200"
- 'Cells.Clear
- Application.DisplayStatusBar = True
- Application.ScreenUpdating = False
- Set ie = CreateObject("internetexplorer.application")
- With ie
- .Visible = False
- .Navigate url
- Do While .ReadyState <> 4
- DoEvents
- Loop
- .ExecWB 17, 2
- .ExecWB 12, 2
- Application.Goto Sheets("Data").Range("B7")
- ActiveSheet.PasteSpecial Format:="HTML", Link:=False, DisplayAsIcon:= _
- False, NoHTMLFormatting:=True
- End With
- Range("B7:G51,B252:G275").Delete Shift:=xlUp
- ie.Quit
- End Sub
½Æ»s¥N½X |
|