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

½Ð°Ý¥i¥H¨¹§Ú¬Ý¤@¤U³oµ{¦¡½X¶Ü¡H

½Ð°Ý¥i¥H¨¹§Ú¬Ý¤@¤U³oµ{¦¡½X¶Ü¡H

[ª©¥DºÞ²z¯d¨¥]
  • GBKEE(2015/2/13 15:27): ¨S¤H¬ÝªºÀ´§A­n¦p¦ó§@,ªþÀÉ»¡©ú·|²M·¡¨Ç.

§ÚA8 ¬O ·Q½Æ»s¤é´Á«á
¨ì¨ä¥L¤À­¶  ¨ì³sµ²¥~³¡ºô­¶ §â¤é´Áµ¹§ï±¼
¦ý ³o¥¨¶°¸ô¦n
«á­±¸Ó«ç»ò§ï  ½ÐÀ°À°¦£


'
    Range("A1").Select
    Sheets("¤W¥«").Select
    Range("B8").Select
    Selection.Copy
    Range("A8").Select
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
        :=False, Transpose:=False
    Range("A8").Select
    Application.CutCopyMode = False
    ActiveCell.FormulaR1C1 = "104/02/11"
    Sheets("¤WÂd").Select
    With Selection.QueryTable
        .Connection = _
        "URL;http://www.gretai.org.tw/web/stock/aftertrading/daily_close_quotes/stk_quote_print.php?l=zh-tw&d=104/02/11"
        .WebSelectionType = xlEntirePage
        .WebFormatting = xlWebFormattingNone
        .WebPreFormattedTextToColumns = True
        .WebConsecutiveDelimitersAsOne = True
        .WebSingleBlockTextImport = False
        .WebDisableDateRecognition = False
        .WebDisableRedirections = True
        .Refresh BackgroundQuery:=False
    End With
    Sheets("§ë«H(¤WÂd)").Select
      Range("A1").Select
    With Selection.QueryTable
        .Connection = _
        "URL;http://www.gretai.org.tw/web/stock/3insti/sitc_trading/sitctr_print.php?l=zh-tw&t=D&type=buy&d=104/02/11"
        .WebSelectionType = xlEntirePage
        .WebFormatting = xlWebFormattingNone
        .WebPreFormattedTextToColumns = False
        .WebConsecutiveDelimitersAsOne = True
        .WebSingleBlockTextImport = False
        .WebDisableDateRecognition = False
        .WebDisableRedirections = True
        .Refresh BackgroundQuery:=False
    End With
       Range("A180").Select
    With Selection.QueryTable
        .Connection = _
        "URL;http://www.gretai.org.tw/web/stock/3insti/sitc_trading/sitctr_print.php?l=zh-tw&t=D&type=sell&d=104/02/11"
        .WebSelectionType = xlEntirePage
        .WebFormatting = xlWebFormattingNone
        .WebPreFormattedTextToColumns = False
        .WebConsecutiveDelimitersAsOne = True
        .WebSingleBlockTextImport = False
        .WebDisableDateRecognition = False
        .WebDisableRedirections = True
        .Refresh BackgroundQuery:=False
    End With
   
    Sheets("¤W¥«").Select
End Sub

        ÀR«ä¦Û¦b : ¦³®É·í«äµL®É­W¡A¦n¤Ñ­n¿n«B¨Ó³¡C
ªð¦^¦Cªí ¤W¤@¥DÃD