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

[µo°Ý] ¨Ï¥ÎWEB¬d¸ß§ó·s¸ê®Æ®É,¸õ¥X¨Óªº¿ù»~,

¦^´_ 10# stillfish00


   ¸Õ¬Ý¬Ý
¤£ºÞ¦p¦ó³£·PÁ§Aµo¨¥¦^ÂÐ^^

TOP

·|¤£·|¸òºô¸ô«~½è¦³Ãö(¥»¨­ºô³t¡B©Î¬O¸Óºô¯¸·í®ÉµLªk¦^À³...)

TOP

icestormer ¤j¡A
§Aªº°ÝÃD§Ú¦³¹J¹L¡A°ò¥»¤W§AÀ³¸Ó¤]¬O¨Ï¥Îiqy¥h§ì¨ú¸ê®Æªº¹ï§a¡I
·íºô¸ô¤U¸ü¶¶§QÀ³¸Ó´N¤£·|¥X²{¦¹²{¶H¡A
¦Ó¸Óºô¯¸Ác¦£®É´N¦³¥i¯à·|¥X²{¡C
§Ú¤§«e·Q§ì20²Õ¸ê®Æ¡A¤À§O©ñ¦b20±isheet¸Ì¡A
¥i¬O§Ú¤@¦¸´N±N20²Õªº¥N¸¹§ó´«±¼¡A
¥i¯à¦]¦¹°¸º¸·|µo¥Í¦¹¤@²{¶H¡C
·íµo¥Í®É¡A°²³]¨ä¤¤¤@²Õ¡A§Ú§ó§ï¨ä¥N¸¹¦ý¥¦¨Ì·|µo¥Í¡C
¤£·|µo¥Í¿ù»~ªºsheet¡Aµo¥Íªº¾÷²v¥u¦³¤@¦¨¡C

«Øij§A¡A±Ä¥Îvba¨Ó¤U¸ü¸ê®Æ¡A¨C­¶sheet¤§¶¡¡A
¬Û¹j1¡ã5¬í¡]½T»{¤U¸ü§¹¦¨¡^¡A§ì¨ú¸ê®ÆÀ³¸ÓÁÙÆZ¶¶ºZªº¡C

TOP

¥ÎVBA¨Ó§ì¤~¬O¥¿½Tªº

¨Ò¦pºô¯¸¦£®É¡A§A­n³]©w¤@­Óµ{¦¡¨Ò¦p¤Q¬í¡A©Î¬O¨º­Óºô­¶¥X²{¨Ò¦p¡GµL¦¹¸ê®Æ¡K»y¥y¡A´N¸õ¨ì¤U¤@ÀɪѲ¼¡A¨Ã±N¸õ¹LªºªÑ²¼¥N½X¡A¼g¶iLOGÀɤ¤¡A³o¼Ë§ó·s´N¤£·|¦³°ÝÃD¡A¤]·|ª¾¹D¬O­þ¤@ÀÉ®@¡I

³oºØ¨Æ¥H«e§Ú¦³¤]¹L¡A«á¨Ó¦Û¤v¼g´N¨S¦³°ÝÃD

TOP

¦^´_ 6# GBKEE

¯à§_ ½Ð°Ý¤j¤j....
     
     ¦p¦ó¥i¥H¤£­n¥X²{ [¬d¸ß§ó·s]

¦p¹Ï



ªþÀÉ ¨C¤é¦¬½L¦æ±¡.rar (60.54 KB)
50 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X

TOP

¥»©«³Ì«á¥Ñ GBKEE ©ó 2013-12-28 18:52 ½s¿è

¦^´_ 15# 7777

   

§AªºWeb¶×¤J°Ñ¼Æ¦³»~
  1. Option Explicit
  2. Sub Ex() '­×§ï§AªºWeb°Ñ¼Æ
  3. Dim URL, DCym, DCymd, Eymd '
  4. DCym = "[" & """ym """ & "," & """" & Format(Date, "yyyymm") & """" & "]"        '¦è¤¸¦~¤ë
  5. DCymd = "[" & """ymd """ & "," & """" & Format(Date, "yyyymmdd") & """" & "]"     '¦è¤¸¦~¤ë¤é
  6. Eymd = "[" & """Eymd""" & "," & """" & Format(Date, "E/mm/dd") & """" & "]"       '¥Á°ê¦~/¤ë/¤é
  7. URL = "URL;http://www.twse.com.tw/ch/trading/exchange/MI_INDEX/genpage/Report" & DCym & "/A112" & DCymd & "ALLBUT0999_1.php?select2=ALLBUT0999&chk_date=" & Eymd
  8.     With Sheet1.QueryTables(1)
  9.         .Connection = URL
  10.         .WebSelectionType = xlSpecifiedTables
  11.         .WebFormatting = xlWebFormattingNone
  12.         .WebTables = "10"
  13.         .WebPreFormattedTextToColumns = True
  14.         .WebConsecutiveDelimitersAsOne = True
  15.         .WebSingleBlockTextImport = False
  16.         .WebDisableDateRecognition = False
  17.         .WebDisableRedirections = False
  18.         .Refresh BackgroundQuery:=False
  19.     End With
  20. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 16# GBKEE

·PÁ¤j¤j
Webªº°Ñ¼Æ¨S¦³¿ù
¦]¬°
¥xÆW¥æ©ö©Òªº¸ê®Æ¡A¨S¦³ (2012/12/28) ©Ò¦³·|¦³»~
¥[¤W¥æ©ö©Ò 13:30 ¦¬½L«á¡A¬ù13:50 ¤~·|¶×¾ã¦n¸ê®Æ
¥H­P©ó ¥»¤H§Æ±æ¬O §ó§ï¬°[¤â°Êªº¤è¦¡]¨Ó¶i¦æ
©Ò¥H­«ÂI¬O .... [T2] ­n¬O ¥xÆW¥æ©ö©Ò ¦³¶}½Lªº®É¶¡¤é´Á¤~¥i¥H§ì¸ê®Æ
¦]¬°¨S¦³¿ù¡A©Ò¥H´N§ï¦^¡AÁÂÁ¤j¤j

    Option Explicit
    Sub Ex() '­×§ï§AªºWeb°Ñ¼Æ
    Dim URL, DCym, DCymd, Eymd '
    DCym = [T4]        '¦è¤¸¦~¤ë
    DCymd = [T3]       '¦è¤¸¦~¤ë¤é
    Eymd = [T5]        '¥Á°ê¦~/¤ë/¤é
    URL = "URL;http://www.twse.com.tw/ch/trading/exchange/MI_INDEX/genpage/Report" & DCym & "/A112" & DCymd & "ALLBUT0999_1.php?select2=ALLBUT0999&chk_date=" & Eymd
        With Sheet1.QueryTables(1)
            .Connection = URL
            .WebSelectionType = xlSpecifiedTables
            .WebFormatting = xlWebFormattingNone
            .WebTables = "10"
            .WebPreFormattedTextToColumns = True
            .WebConsecutiveDelimitersAsOne = True
            .WebSingleBlockTextImport = False
            .WebDisableDateRecognition = False
            .WebDisableRedirections = False
            .Refresh BackgroundQuery:=False
        End With
    End Sub
50 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X

TOP

¦^´_ 17# 7777
³o¬O§AªþÀÉWebªººô§}
'www.twse.com.tw/ch/trading/exchange/MI_INDEX/genpage/Report["ªÑ»ù¦~¤ë","ªÑ»ù¦~¤ë"]/A112["ªÑ»ù¦~¤ë¤é","ªÑ»ù¦~¤ë¤é"]ALLBUT0999_1.php?select2=ALLBUT0999&chk_date=29991231 ³o¸Ì¿ù»~
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 18# GBKEE

·PÁ¤j¤j ®É¨Æ¨D¨Æ~ »{¯uªº­±¹ï¨C¤@­Ó°ÝÃD

¨S¿ù Webªººô§} ²Ä3­Ó®É¶¡¬O¡A¨ú«D±`«D±`¥¼¨Óªº¤é´Á

    DCym = [T4]        '¦è¤¸¦~¤ë
    DCymd = [T3]       '¦è¤¸¦~¤ë¤é
    Eymd = [T5]        '¥Á°ê¦~/¤ë/¤é

¦]¬° ²Ä1,2 ¬O­n¨ú©Ò­nªº®É¶¡¸ê°T (©Ò¥H ·|¬OÅܼÆ)

²Ä3­Ó®É¶¡ªº±ø¥ó¡A¦ü¥G¬O­n
­­¨î¦³®Äªº¸ê°T:¦b³Ì«áªº®É¶¡¤é´Á¤º (©Ò¥H ¨ú¤@­Ó«D±`»·ªº±`¼Æ¤]¥i¥H)

¤j¤jªº°µªk¡A¬O³Ì¥¿½Tªº¤èªk

·PÁ¤j¤j
50 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X

TOP

        ÀR«ä¦Û¦b : ¦Y­W¤F­W¡B­WºÉ¤Ü¨Ó¡A¨ÉºÖ¤FºÖ¡BºÖºÉ´d¨Ó¡C
ªð¦^¦Cªí ¤W¤@¥DÃD