- ©«¤l
- 21
- ¥DÃD
- 8
- ºëµØ
- 0
- ¿n¤À
- 35
- ÂI¦W
- 0
- §@·~¨t²Î
- winXP
- ³nÅ骩¥»
- 1.0
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-8-4
- ³Ì«áµn¿ý
- 2018-3-8

|
Sub Purchases()
Set shts = ActiveSheet
For i = 0 To 6000 Step 50
If i = 0 Then
j = 1
Else
j = (i / 50) * 51 + 1
End If
URL = "http://www.insidermonkey.com/insider-trading/screener/#/offset=" & i & "&symbol=&price=&filing-date-from=&filing-date-to=2014-05-23&transaction=All&amount=&title-director=false&title-officer=false&title-large-shareholder=false&title-other=false&min-transaction-amount=1000000&number-of-min-insiders="
With CreateObject("InternetExplorer.Application")
.Visible = False ' ¬O§_Åã¥Ü IE
.Navigate URL
Do While .ReadyState <> 4 Or .Busy
DoEvents
Loop
Do While .ReadyState <> 4 Or .Busy
DoEvents
Loop
xlHtm = .Document.body.innerHTML 'Àx¦s
Set A = .Document.getElementsBytagname("table")
.Document.body.innerHTML = A(0).outerHTML
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ¥L¤T¤£¤®É·|°±¦b³o¦æ
»¡§ä¤£¨ì©w¸qªºª«¥ó? ¤£¹L§Ú¹L¬q®É¶¡¦A«öF5´N¤S·|¶]¤F
½Ð°Ý³oÓ«ç»ò§ï¶i
.ExecWB 17, 2 ' Select All
.ExecWB 12, 2 ' Copy selection
With shts
.Cells(j, 1).Select
.PasteSpecial Format:="HTML", Link:=False, DisplayAsIcon:=False, NoHTMLFormatting:=True
End With
.Document.body.innerHTML = xlHtm 'ÁÙì
shts.Cells.EntireColumn.AutoFit ' ¦Û°Ê½Õ¾ãÄæ¼e
.Quit
End With
Next i
End Sub |
|