ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

½Ð°Ý¦p¦ó±Nºô­¶ªº¹Ï¤ù¦sÀÉ

¦^´_ 14# GBKEE


    ÁÂÁ GBKEE ª©¤j
   ¬O§Ú¬Ý¿ù¤F
   
        .Document.ALL.tags("INPUT")("input_search_stk").Value = Trim(1258)

TOP

¥»©«³Ì«á¥Ñ wufonna ©ó 2014-12-14 15:09 ½s¿è

¦^´_ 14# GBKEE


    ½Ð°Ý ¤j¤j ²Ä¤@¬q¹ïÀ³ªº¬O³oµ{¦¡½X¶Ü¡A¨º²Ä¤G¬qªº§Ú³o¼Ë§ï¬°¦ó¬dµL¸ÓªÑ²¼¥N½X¸ê®Æ
½Ñ°Ý ¤j¤j ¦p¦ó¦³»~¡A§ï¦p¦ó°µ½m²ß¡AÁÂÁÂ


<button type="submit" class="btn btn-default"><span class="glyphicon glyphicon-search" aria-hidden="true"></span>&nbsp;¬d¸ß</button>

      Set a = .Document.ALL.tags("BUTTON")
        For Each e In a
            If Trim(e.innertext) = "¬d¸ß" And e.ID = "" Then
            e.Click
            Exit For
            End If
        Next

<input type="radio" id="rdo_search_stk" tabindex="14" name="rdo_search" value="1" class="input-radio-search" checked><span>­ÓªÑ¬d¸ß</span>
<button id="header_search_btn" tabindex="17" class="input-button ui-corner-all" tabindex="13">·j´M</button>       

Sub test()
Dim e As Object, a As Object
    Set IE = CreateObject("InternetExplorer.Application")
   
    With IE
        .Visible = True
        '¨é°Ó¶R½æÃÒ¨é¤é³øªí¬d¸ß¨t²Î¡]¤@¯ë¥æ©ö¡^
        .Navigate "http://www.gretai.org.tw/web/stock/aftertrading/broker_trading/brokerBS.php?l=zh-tw"
        Do While .Busy Or .readyState <> 4: DoEvents: Loop
        .Document.ALL.tags("INPUT")("rdo_search_stk").Value = 1
        .Document.ALL.tags("INPUT")("input_search_site").Value = Trim(1258)
        Set a = .Document.ALL.tags("BUTTON")
        For Each e In a
        If e.ID = "header_search_btn" Then
            e.Click
            Exit For
        End If
        Next
    End With
End Sub

TOP

¦^´_ 14# GBKEE

­ì¨Ó´N¦b­±«e «¢
ÁÂÁÂ GBKEE ¤j¤j

TOP

¦^´_ 14# GBKEE



½Ð°Ý,¸Ó¦p¦ó¸ü¤J¨ä¥L­¶¦¸
­Y¤£¥Î¼g¤JExcel,¦Óª½±µ .Click ¤U¸üCSVÀÉ(BIG5) ÀÉ®×
»yªk¸Ó«ç»ò­×¥¿
  1.         Set aa = .Document.getElementsByTAGName("INPUT")
  2.         For R = 0 To aa.Length - 1
  3.             If aa(R).Value = "¤U¸üCSVÀÉ(BIG5)" And aa(R).Type = "button" Then
  4.                 aa(R).Click   '¦³ "¤U¸üCSVÀÉ(BIG5)" ªº«ö¶s
  5.                     Do While .Busy Or .ReadyState <> 4: DoEvents: Loop
  6.             End If
  7.         Next
½Æ»s¥N½X

TOP

¦^´_ 12# wufonna
2010ª©ªº§ä¤£¨ì¹Ï¤ù¦p¦ó§ó¦W
¦p¹Ï ¨ì¦WºÙ¤è¶ô¤¤­×§ï






VBA­×§ï
  1. With ¤u§@ªí1
  2.     .Shapes(1).Name = "ÅçÃÒ¹Ï"
  3.     .Shapes("ÅçÃÒ¹Ï").Fill.UserPicture ¹Ï§Î    '
  4. End With
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 11# GBKEE

ÁÂÁÂ GBKEE ¤j¤j
* ¨Ï¥Îø¹Ïªº¹Ï¤ù
¥i¥H¤F ^_^

2014-12-13_192543.jpg (70.4 KB)

2014-12-13_192543.jpg

TOP

¦^´_ 11# GBKEE
GBKEE ¤j¤j
2010ª©ªº§ä¤£¨ì¹Ï¤ù¦p¦ó§ó¦W¡A
³oµ{¦¡¬O­n¥ý¬Ý¹Ï¤ùªº¦r¦A¿é¤J F2 ©M f4 ¤~¥i¿é¥X¶Ü
µ{¦¡ÁÙ¤£²M·¡¡A¬ã¨s¬Ý¬Ý ¤£·|¦A½Ð±Ð ¤j¤j
ÁÂÁ  GBKEE ª©¤j

¬¡­¶Ã¯1.rar (29.42 KB)

TOP

¦^´_ 10# wufonna

§AªºªþÀÉ
´¡¤Jªº¹Ï¤ù»Ý¨Ï¥Îø¹Ïªº¹Ï¤ù
¤@¼Ë§AªºªþÀÉ ªº¹Ï¤ù¨S§ï¦WºÙ¬° "ÅçÃÒ¹Ï"
µ¹§A°£¿ùµ{¦¡½X
  1. Private Sub ¹Ï§Î§ó·s()
  2.    On Error GoTo ER
  3.     If IE Is Nothing Then Get_Ie
  4.     If Msg Then MsgBox "ÅçÃÒ¹Ï §ó·s§¹²¦"
  5.     Msg = False
  6.     With IE
  7.         .Refresh
  8.         Do While .Busy Or .readyState <> 4: DoEvents: Loop
  9.         ºô¸ô¹Ï¤ù¦sÀÉ .Document.ALL.tags("IMG")(0).href
  10.     End With
  11.     MsgBox ¤u§@ªí1.Shapes("ÅçÃÒ¹Ï").Name
  12.    
  13.     ¤u§@ªí1.Shapes("ÅçÃÒ¹Ï").Fill.UserPicture ¹Ï§Î    '
  14.   Exit Sub
  15. ER:
  16.     MsgBox Err & vbLf & Err.Description
  17.     Stop
  18.     MsgBox ¤u§@ªí1.Shapes(1).Name
  19.     Resume
  20. End Sub

½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 9# GBKEE

GBKEE ¤j
°õ¦æ¦³¶}±ÒIE
¿ù맽X¦p¤U¡AÁÙ¬O§Ú¦³¨º¤@¨B°µ¤F¡AÁÂÁÂ

Àɦw¦P©ñD:\ ®Ú¥Ø¤U

2014-12-13_143120.jpg (111.53 KB)

2014-12-13_143120.jpg

2014-12-13_143151.jpg (36.57 KB)

2014-12-13_143151.jpg

¬¡­¶Ã¯1.rar (23.84 KB)

TOP

¥»©«³Ì«á¥Ñ GBKEE ©ó 2014-12-13 13:24 ½s¿è

¦^´_ 8# wufonna
³o¿ù»~¬O§A±N IEÃö³¬¤F
VBA«ö¤U­«³],­«·s°õ¦æµ{¦¡
  1. Private Sub Get_Ie()
  2.     Set IE = CreateObject("InternetExplorer.Application")
  3.     With IE
  4.        ' .Visible = True  *** ¤£Åã¥Ü´N¬O¨¾¤î¨Ï¥ÎªÌÃö³¬IE
  5.         '¨é°Ó¶R½æÃÒ¨é¤é³øªí¬d¸ß¨t²Î¡]¤@¯ë¥æ©ö¡^
  6.         .Navigate "http://www.gretai.org.tw/web/stock/aftertrading/broker_trading/brokerBS.php?l=zh-tw"
  7.         Do While .Busy Or .readyState <> 4: DoEvents: Loop
  8.     End With
  9. End Sub
½Æ»s¥N½X


´¡¤Jªº¹Ï¤ù»Ý¨Ï¥Îø¹Ïªº¹Ï¤ù
  1. ¤u§@ªí1.Shapes("ÅçÃÒ¹Ï").Fill.UserPicture ¹Ï§Î
½Æ»s¥N½X
ªþÀÉ´¡¤Jªº¹Ï¤ù¨S§ï¦WºÙ ÅçÃÒ¹Ï
¤]¥i¥H¨Ï¥Î Shapes(¯Á¤Þ­È)->¦pShapes(1)
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

        ÀR«ä¦Û¦b : ¹D¼w¬O´£ª@¦Û§Úªº©ú¿O¡A¤£¸Ó¬O¨þ¥¸§O¤HªºÃ@¤l¡C
ªð¦^¦Cªí ¤W¤@¥DÃD