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

[µo°Ý] ªÑ²¼¾ú¥v»ù®æªí

¦^´_ 8# GBKEE


   §Ú°O±o·|³y¦¨¤£¤@¼Ë¬O¦]¬°¦pªG¿é¤J¤é´Á­è¦n¸I¨ì°²¤é¡A¨º¸ê®Æ·|¥H¤U¤@­Ó¤u§@¤é¶}©l¡A¨Ò¦p¿é¤J20180128(¤é)¡A¨º´N·|§ì¨ì±q20180129(¤@)¶}©lªº¸ê®Æ
Excel VBAºô­¶¸ê®Æ¦¬¶°±Ð¾Ç:
http://forum.twbts.com/thread-20848-1-1.html

TOP

¥»©«³Ì«á¥Ñ GBKEE ©ó 2018-2-1 20:39 ½s¿è

¦^´_ 11# iamaraymond
³oºô­¶¥i¯à¤]¦³¬y¶qºÞ¨î
¸Õ¸Õ¬Ý
  1. Option Explicit
  2. Sub ªÑ»ù()
  3.     Dim stockno As String, mydate1 As String, mydate2 As String, myurl As String
  4.     Dim Ar As Variant, i As Integer, xTime As Date
  5.     Ar = Array("2005/1/1", "2006/1/1", "2007/1/1", "2008/1/1")
  6.     [B3] = 2303
  7.     stockno = [B3]
  8.     [B5] = Date
  9.     For i = 0 To UBound(Ar)
  10.         [b4] = Ar(i)
  11.         [A10].CurrentRegion.Clear
  12.         mydate1 = Format([b4], "YYYY/MM/DD")
  13.         mydate2 = Format([B5], "YYYY/MM/DD")
  14.         myurl = "https://www.cnyes.com/twstock/ps_historyprice.aspx?code=" & stockno & "&ctl00$ContentPlaceHolder1$startText=" & mydate1 & "&ctl00$ContentPlaceHolder1$endText=" & mydate2
  15.         With ActiveSheet.QueryTables.Add(Connection:= _
  16.             "URL;" & myurl, Destination:=Range("$A$10"))
  17.             .RefreshStyle = xlOverwriteCells
  18.             .SaveData = True
  19.             .AdjustColumnWidth = False
  20.             .WebSelectionType = xlSpecifiedTables
  21.             .WebFormatting = xlWebFormattingNone
  22.             .WebTables = "1"
  23.             Application.StatusBar = "¸ê®Æ¤U¸ü¤¤ ... " & [b4]
  24.             .Refresh BackgroundQuery:=False
  25.             .Delete
  26.         End With
  27.         With [A10].End(xlDown)
  28.             .Select
  29.             If Abs(.Cells - [b4]) > 15 Then
  30.                 MsgBox "¶}©l¤é´Á " & [b4] & " <****> " & .Cells
  31.             End If
  32.         End With
  33.         If i < UBound(Ar) Then
  34.             xTime = Time
  35.             Do
  36.                 DoEvents
  37.                 Application.StatusBar = xTime + #12:00:20 AM# & " - µ¥­Ô 20¬í ..." & Time
  38.             Loop While xTime + #12:00:20 AM# > Time
  39.         Else
  40.             MsgBox "µ{¦¡ §¹²¦ "
  41.         End If
  42.     Next
  43. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 11# iamaraymond

§Ú·Q¬O¸ê®Æªº§¹¾ã©Ê°ÝÃD¡A¤£¬O°_©l¤é´Á¬O§_»P¸ê®Æ¤é´Á¤@­P
¦b¤U¦C¦ì§}¦³°Q½×¡A½Ð°Ñ¦Ò  
  http://forum.twbts.com/thread-20288-1-1.html

TOP

IE , ActiveX.EXE ³Ì¤j¯SÂI¬O¤°?  µ½¥Î¤§

TOP

¦^´_ 14# jackyq


    ½Ð jackyq ¤j©ú¥Ü¡A¥H«K¾Ç²ß

ÁÂÁÂ

TOP

¦^´_ 15# Scott090

¦h¤u ...

TOP

        ÀR«ä¦Û¦b : ¤@­Ó¯Ê¤fªºªM¤l¡A¦pªG´«¤@­Ó¨¤«×¬Ý¥¦¡A¥¦¤´µM¬O¶êªº¡C
ªð¦^¦Cªí ¤W¤@¥DÃD