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

[µo°Ý] ½Ð°Ý¦³¤°»ò¤èªk¥i¥H¦bexcel¤W¦Û°Ê§ó·s¥Ø«e©Ò¦³¤W¥«ÂdªÑ²¼¦¬½L»ù

¦^´_ 26# jsleee


¦A½Ð°Ý jsleee

1.¤U¸üªþÀÉ´ú¸Õ«á¡A¹J¨ì¤@­Ó°ÝÃD¡A´N¬O¡y¤W¥«¡z³¡¥÷µLªk§ó·s¡A§Ú±N¤W¥«ªºµ{¦¡¦X¨Ö©ñ¶i¥hÁ`ªíùØ¡A¥i¬OµLªk°õ¦æ¡A½Ð°Ý­n¦p¦ó¦X¨Ö¶i¥h¡C
2.¥t¥~¡A¦³ªk¤lÅýÀɮ׶}±Ò®É¡A´N¦Û°Ê§ó·s©Ò¦³ªº¥|­Ó¤u§@ªí¡A¥B±N¥|­Ó¤u§@ªí¦X¨Ö¦b¥t¤@±i¤u§@ªí¶Ü?

«D±`ÁÂÁ±zªº«ü¾É!
peter460191

TOP

ÁÂÁÂ jsleee

§ÚÁÙ¶·¥[¤@¤Uªo!
«Ý§Ú¥i¥H¤U¸ü¤§«á¦A¬ã¨s¬Ý¬Ý ¡C
peter460191

TOP

¦^´_ 21# peter460191


    ½Ð±N Á`ªí¤ºªºµ{¦¡½X ²¾¨ì ¼Ò²Õ¤¤¡A§Y¥i.....
    ½Ð°Ñ¦Òªþ¥ó....

§ó·s¦¬½L»ù.rar (182.49 KB)

TOP

¦^´_ 24# jsleee


    ÁÂÁ±z!§Ú¤]§Ö­n¥i¥H¦³¤U¸üªºÅv­­¤F !©¡®É¦A³Â·Ð±z«ü¥¿¤F!
peter460191

TOP

¦^´_ 23# peter460191

©êºp¡A§Ú¤ÏÂдú¸Õ¡AÁÙ¬O¹J¤£¨ì§Aªº°ÝÃDÂI.....
¦A¹L´X¤Ñ¡A¤]³\§ÚªºÂI¼Æ°÷¤F¡A´N¥i¥H¤U¸ü§AªºÀÉ®×´ú¸Õ¤F.....

TOP

¦^´_ 22# jsleee


   
³Â·Ð«e½ú«ü¾É¡C
peter460191

TOP

¦^´_ 21# peter460191

«Ü©êºp¡A§ÚÁÙ¨S¦³Åv­­¤U¸üÀÉ®×....
½Ð±N¿ù»~µe­±Â^¨ú¶K¤W¨Ó.....
³o¼Ë¤~¦³¿ìªkª¾¹D§Aªº°ÝÃDÂI

TOP

¦^´_ 20# jsleee


   ½Ð°Ý  jsleee ¤Î¦U¦ì¹F¤H

§Ú§âµ{¦¡©ñ¤W¥h«á,·|¥X²{¿ù»~°T®§,µ{¦¡´N¥d¦í¤F, §ó·s¦¬½L»ù.rar (179.62 KB)
¦³ªþ¤WÀɮתþ¥ó,½ÐÀ°§Ú¬Ý¤@¤U,§ÚÀ³¸Ó±q¨º³¡¥÷­×¥¿,ÁÂÁ±z!
peter460191

TOP

¦^´_ 25# peter460191

¸Õ¸Õ¬Ý¥H¤Uªºµ{¦¡½X¡G¦ý½Ð¥ý¦b§Aªº Excel ¤u§@ªí «Ø¥ß¤T­Ó¤u§@ªí¡A¦WºÙ¤À§O¬° "¤WÂd"¡B"¥iÂà¶Å"¡B"¿³Âd"¡A§_«hµ{¦¡·|¥X¿ù....


Sub ¤WÂd_¥iÂà¶Å_¿³Âd()
    '¤WÂd
    Application.ScreenUpdating = False
    Sheets("¤WÂd").Select
    DATE_REQ = CDate(Format(Now(), "yyyy/m/d"))
   
PPP1:    yyymmdd = Year(DATE_REQ) - 1911 & Format(Month(DATE_REQ), "00") & Format(Day(DATE_REQ), "00")
    Application.DisplayAlerts = False
    On Error Resume Next
    Cells.Select
    Selection.QueryTable.Delete
    Selection.ClearContents
    Range("A1").Select
    With ActiveSheet.QueryTables.Add(Connection:= _
        "URL;http://www.otc.org.tw/ch/stock/aftertrading/DAILY_CLOSE_quotes/RSTA3104_" & yyymmdd & ".html" _
        , Destination:=Range("$A$1"))
        .Name = "RSTA3104_" & yyymmdd & ""
        .FieldNames = True
        .RowNumbers = False
        .FillAdjacentFormulas = False
        .PreserveFormatting = True
        .RefreshOnFileOpen = False
        .BackgroundQuery = True
        .RefreshStyle = xlInsertDeleteCells
        .SavePassword = False
        .SaveData = True
        .AdjustColumnWidth = True
        .RefreshPeriod = 0
        .WebSelectionType = xlEntirePage
        .WebFormatting = xlWebFormattingNone
        .WebPreFormattedTextToColumns = True
        .WebConsecutiveDelimitersAsOne = True
        .WebSingleBlockTextImport = False
        .WebDisableDateRecognition = False
        .WebDisableRedirections = False
        .Refresh BackgroundQuery:=False
    End With
    On Error GoTo 0
    Columns("A:A").ColumnWidth = 7
    If Cells(1, "A") = "" Then
        DATE_REQ = DATE_REQ - 1
        GoTo PPP1
    End If

   
    Sheets("¥iÂà¶Å").Select
    yyyymmdd = Year(DATE_REQ) & Format(Month(DATE_REQ), "00") & Format(Day(DATE_REQ), "00")
    On Error Resume Next
    Cells.Select
    Selection.QueryTable.Delete
    Selection.ClearContents
    Range("A1").Select
    With ActiveSheet.QueryTables.Add(Connection:= _
        "URL;http://www.otc.org.tw/ch/inc/js/ReportCSV.php?NAME=/ch/bond_trading_info/bonds_info/daily/data/rsta0113." & yyyymmdd & "-C.csv&SHOW=1&LEVEL=4" _
        , Destination:=Range("$A$1"))
        .Name = "rsta0113." & yyyymmdd & "-C.csv&SHOW=1&LEVEL=4_1"
        .FieldNames = True
        .RowNumbers = False
        .FillAdjacentFormulas = False
        .PreserveFormatting = True
        .RefreshOnFileOpen = False
        .BackgroundQuery = True
        .RefreshStyle = xlInsertDeleteCells
        .SavePassword = False
        .SaveData = True
        .AdjustColumnWidth = True
        .RefreshPeriod = 0
        .WebSelectionType = xlEntirePage
        .WebFormatting = xlWebFormattingNone
        .WebPreFormattedTextToColumns = True
        .WebConsecutiveDelimitersAsOne = True
        .WebSingleBlockTextImport = False
        .WebDisableDateRecognition = False
        .WebDisableRedirections = False
        .Refresh BackgroundQuery:=False
    End With
    On Error GoTo 0
    Columns("A:A").ColumnWidth = 17.75
   
    '¿³Âd
    Sheets("¿³Âd").Select
    Cells.Select
    On Error Resume Next
    Selection.QueryTable.Delete
    Selection.ClearContents
    Range("A1").Select
    With ActiveSheet.QueryTables.Add(Connection:= _
        "URL;http://nweb.gretai.org.tw/emgstk/ch/emgstk.htm", Destination:=Range( _
        "$A$1"))
        .Name = "emgstk_1"
        .FieldNames = True
        .RowNumbers = False
        .FillAdjacentFormulas = False
        .PreserveFormatting = True
        .RefreshOnFileOpen = False
        .BackgroundQuery = True
        .RefreshStyle = xlInsertDeleteCells
        .SavePassword = False
        .SaveData = True
        .AdjustColumnWidth = True
        .RefreshPeriod = 0
        .WebSelectionType = xlEntirePage
        .WebFormatting = xlWebFormattingNone
        .WebPreFormattedTextToColumns = True
        .WebConsecutiveDelimitersAsOne = True
        .WebSingleBlockTextImport = False
        .WebDisableDateRecognition = False
        .WebDisableRedirections = False
        .Refresh BackgroundQuery:=False
    End With
    On Error GoTo 0
    Columns("A:A").ColumnWidth = 15.88
    Columns("B:B").ColumnWidth = 13.13

End Sub

TOP

¥»©«³Ì«á¥Ñ peter460191 ©ó 2011-9-16 13:38 ½s¿è

¦^´_ 18# peter460191


    ¦A½Ð±Ð  jsleee «e½ú

§Ú§â¥þ³¡ªºµ{¦¡©ñ¦b¤@°_¡A¦ý¥u·|¥X²{¤@ºØ¡A·Q½Ð°Ý­n¦p¦óÅý¥¦¦P®É¥X²{¡A¥t¥~Åܧó¤é´Á¡A°£¤F³z¹L¥¨¶°°õ¦æ¥~¡AÁÙ¦³§ó§Ö©Î§ó¤è«Kªº¤èªk¶Ü !½Ð°Ý¦³¤èªkÅýÀɮ׶}±Ò´N¦Û°Ê°õ¦æ³Ì·sªº¤é´Á¶Ü?
½Ðjsleee «e½ú«ü¾É¤@¤U¡A¦A¤@¦¸·PÁ±z!
peter460191

TOP

        ÀR«ä¦Û¦b : ¸Ü¦h¤£¦p¸Ü¤Ö¡A¸Ü¤Ö¤£¦p¸Ü¦n¡C
ªð¦^¦Cªí ¤W¤@¥DÃD