- ©«¤l
- 8
- ¥DÃD
- 3
- ºëµØ
- 0
- ¿n¤À
- 56
- ÂI¦W
- 0
- §@·~¨t²Î
- windows 7
- ³nÅ骩¥»
- office2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2014-9-14
- ³Ì«áµn¿ý
- 2016-1-8
|
¦U¦ìµ{¦¡°ª¤â¦n¡A¤p§Ì·Q°µµ{¦¡§ì¨ú¹³¹d¦ëºô³oÃþªººô¯¸¸ê®Æ
http://www.cnyes.com/twstock/ps_historyprice/1101.htm
¤w¯à°µ¨ìÁä¤J°_©l¤é´Á¤Î¬d¸ß¡A¦ý§ì¨ú¸ê®Æªºµ{¦¡¼g¤£¥X¨Ó¡C
ª¦¹L¨ä¥L¤å¡A³£¬OTABLE¦³id¡A¦ý³oºØªº¤£ª¾±q¦ó¤U¤â¡A
½Ð¨D¨ó§U¡C- Sub Website()
- Dim doc As Object
- Set IE = CreateObject("internetexplorer.application")
- With IE
- IE.Visible = True
- navigate:
- IE.navigate "http://www.cnyes.com/twstock/ps_historyprice/1101.htm"
- 'http://www.cnyes.com/twstock/ps_historyprice/1101.htm'
- Do While IE.ReadyState <> 4: DoEvents: Loop
- Set doc = CreateObject("htmlfile")
- Set doc = IE.document
- If doc Is Nothing Then GoTo navigate
- Set txtDtBegin = doc.getelementbyid("ctl00_ContentPlaceHolder1_startText") '¶}©l¤é´Á'
- txtDtBegin.Value = "2015/11/23"
- Set txtDtEnd = doc.getelementbyid("ctl00_ContentPlaceHolder1_endText") 'µ²§ô¤é´Á'
- txtDtEnd.Value = "2015/11/25"
-
- Set element = doc.getelementbyid("ctl00_ContentPlaceHolder1_submitBut") 'ÂIÀ»«ö¶s'
- element.Click
-
-
- Do While .Busy Or .ReadyState <> 4: DoEvents: Loop
- End With
-
- End Sub
½Æ»s¥N½X |
|