- ©«¤l
- 2
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 3
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- office 2010
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2016-6-17
- ³Ì«áµn¿ý
- 2016-6-20
|
[µo°Ý] vba ±qºô¶¤W¨ú¸ê®Æ®É¨S¦³¤FªÅ®æ
Sub horsehkQP()
Dim A As Object
With CreateObject("InternetExplorer.Application")
.Visible = True
.Navigate "http://bet.hkjc.com/racing/pages/odds_wpq.aspx?date=19-06-2016&venue=ST&raceno=1"
Do While .Busy Or .readyState <> 4: DoEvents: Loop
Set A = .Document.getElementsByTagName("table")
Application.Wait Time + #12:00:02 AM#
.ExecWB 17, 2 ' Select All
.ExecWB 12, 1 ' Copy selection
With ActiveSheet
.UsedRange.Delete
.Range("A1").Select
.Paste
.Range("A1").Select
End With
.Quit 'Ãö³¬ºô¶
End With
End Sub
§Ú¨Ï¥Î¥H¤WVBA ¨ú¸ê®Æ®É
³s¾Æ¤Î¦ì¸mQ ¹Ïªí¤¤ªºªÅ®æ¥þ³£¤£¨£¤F,
§Ú·Q½Ð°Ý¤j®a¦b¶K¤W®É¦p¦ó«O¯dªÅ®æ. ÁÂÁ¸ѵª
¥t¥~ªº,
¦pªG§Ú·Q¦b¥H¤Uºô¶¤¤¨ú "§ëª`ÃB" ¤¤ªº¸ê®Æ VBA n¦p¦ó¼g
http://bet.hkjc.com/racing/pages/odds_tce.aspx?date=16-06-2016&venue=S2&raceno=2
¦]¬°¶i¤Jºô¶«áÁÙn «ö¤U "§ëª`ÃB" ªº«öÁä,
ª½±µCOPY ¤£¦æ,
ÁÂÁ¸ѵª |
|