¦³ÃöEXCEL VBA §ì¨ú¤£¨ì§¹¾ãºô§}CSV°ÝÃD
- ©«¤l
- 2
- ¥DÃD
- 0
- ºëµØ
- 0
- ¿n¤À
- 8
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN
- ³nÅ骩¥»
- VISTA
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-11-6
- ³Ì«áµn¿ý
- 2019-9-2
|
Sub TEXT_102()
Dim YMD_day As String, N As Name, webURL As String
YMD_day = InputBox("¿é¤J ¥Á°ê¦~«×¤é´Á : 102/10/07", "¤U¸ü¯S©w¤é´Áªº¸ê®Æ", Format(Date - 1, "E/MM/DD"))
With Sheets("¤U¸ü¸ê®Æ")
For Each N In .Names
'N.Delete
Next
.Cells.Clear
GetData_URL = "URL;http://www.twse.com.tw/ch/trading/block/BFIAUU/BFIAUU.php?edition=ch&filename=genpage/A" & YMD_day & ".dat&type=csv"
'webURL = "URL; http://www.twse.com.tw/ch/trading/block/BFIAUU/BFIAUU.php?input_date=" & YMD_day & "&login_btn=¬d¸ß.dat"
With .QueryTables.Add(Connection:=GetData_URL, Destination:=.Range("A1"))
.WebSelectionType = xlSpecifiedTables
.WebFormatting = xlWebFormattingNone
.WebTables = "data_table"
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = False
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = True
.Refresh BackgroundQuery:=False
End With
End With
End Sub |
|
|
|
|
|
|
- ©«¤l
- 2035
- ¥DÃD
- 24
- ºëµØ
- 0
- ¿n¤À
- 2031
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7
- ³nÅ骩¥»
- Office2010
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-3-22
- ³Ì«áµn¿ý
- 2024-2-1
|
¦^´_ 6# GBKEE
¬¡¶Ã¯1.rar (9.73 KB)
¥Ø«eµL½×¬O¤W¶Çªþ¥ó©Î¹Ï¤ù¡A³£¥²¶·¥t¥~¨Ï¥Î IE¡A
µLªk¦b FireFox ¤º°õ¦æ¡A«D±`¦a¤£¤è«K¡A§Ú¤]¸ò
¤p»xª©¥D´£¹L¡AÁÙ¬OµLªk¤W²î¡AÆZ§xÂZªº¡C |
|
|
|
|
|
|
- ©«¤l
- 2035
- ¥DÃD
- 24
- ºëµØ
- 0
- ¿n¤À
- 2031
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7
- ³nÅ骩¥»
- Office2010
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-3-22
- ³Ì«áµn¿ý
- 2024-2-1
|
¥»©«³Ì«á¥Ñ c_c_lai ©ó 2013-11-9 11:31 ½s¿è
¦^´_ c_c_lai
¤Ö¤F¤@ÂI .Range("A1"),ÁÂÁ§Aªº´ú¸Õ.(2#ªºµ{¦¡½X¤w¥[¤W¤@ÂI¤F)
¦]¬°§@¥Î¤¤ªº¤u§@ªí¤£¬OS ...
GBKEE µoªí©ó 2013-11-9 11:00
¤§«e§Ú¥ç¥[¤W¤F¤@ "."¡A ÁÙ¬O¤@¼Ëªºµ²ªG¡C
Destination:=.Range("A1")
§Ú¤]¬O¦b§äì¦]¡C ¦b 2003 ¯à°õ¦æ¶Ü¡H |
|
|
|
|
|
|
- ©«¤l
- 2035
- ¥DÃD
- 24
- ºëµØ
- 0
- ¿n¤À
- 2031
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7
- ³nÅ骩¥»
- Office2010
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-3-22
- ³Ì«áµn¿ý
- 2024-2-1
|
¦^´_ 2# GBKEE
°õ¦æ¨ì .Refresh BackgroundQuery:=False «K¥X²{ 1004 ªº¿ù»~°T®§¡C
½Ð±Ð±z¡A³o·|¬O¬Æ»òª¬ªp¡H |
|
|
|
|
|
|
- ©«¤l
- 15
- ¥DÃD
- 7
- ºëµØ
- 0
- ¿n¤À
- 69
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- SP3
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-7-29
- ³Ì«áµn¿ý
- 2021-7-4
|
½Ð±Ð¦p¦ó¹B¥Î VBA §â ºô¸ô*.csv ªºÀɮפU¸ü¨ìEXCELªºªí®æùØ¡H
½Ð±Ð¦p¦ó¹B¥Î VBA §â
¯S©w¤é´Áªº ¹dÃB¥æ©ö¤é¦¨¥æ¸ê°T - ¸ê®Æ
¤U¸ü¨ìEXCELªºªí®æùØ¡H
°Ñ¦Òºô§}¡G
http://www.twse.com.tw/ch/trading/block/BFIAUU/BFIAUU.php
½Ð±Ð°ÝÃD102.11.8.rar (17.84 KB)
|
|
|
|
|
|
|