µù¥U
µn¿ý
º¶
½×¾Âª©³W
¸T¤î¦Cªí
»¡©ú
¦a¹Ï
¼Æ¦ì®Ñ»
¨p¤H®ø®§ (0)
¤½¦@®ø®§ (0)
½×¾Â¥ô°È (0)
¨t²Î®ø®§ (0)
¦n¤Í®ø®§ (0)
©«¤l®ø®§ (0)
³Â»¶®a±Ú°Q½×ª©ª©
»
Excelµ{¦¡°Ï
» ¦p¦ó¶×¤JUTF-8 Ãþ«¬ªºÀÉ®×
ªð¦^¦Cªí
¤U¤@¥DÃD
¤W¤@¥DÃD
µo©«
[µo°Ý]
¦p¦ó¶×¤JUTF-8 Ãþ«¬ªºÀÉ®×
bioleon69
µoµu®ø®§
¥[¬°¦n¤Í
bioleon69
(¤pB)
·í«eÂ÷½u
UID
25706
©«¤l
62
¥DÃD
14
ºëµØ
0
¿n¤À
86
ª÷¿ú
86
ÂI¦W
0
§@·~¨t²Î
win10
³nÅ骩¥»
offffice2013
¾\ŪÅv
20
©Ê§O
¨k
¨Ó¦Û
¥x¥_
¦b½u®É¶¡
74 ¤p®É
µù¥U®É¶¡
2016-8-23
³Ì«áµn¿ý
2017-11-5
¡@¼ÊºÙ:
¤pB
¤¤¾Ç¥Í
©«¤l
62
¥DÃD
14
ºëµØ
0
¿n¤À
86
ÂI¦W
0
§@·~¨t²Î
win10
³nÅ骩¥»
offffice2013
¾\ŪÅv
20
©Ê§O
¨k
¨Ó¦Û
¥x¥_
µù¥U®É¶¡
2016-8-23
³Ì«áµn¿ý
2017-11-5
1
#
¸õÂà¨ì
»
¥¿§Ç¬Ý©«
¥´¦L
¦rÅé¤j¤p:
t
T
µoªí©ó 2017-5-16 14:33
|
¥u¬Ý¸Ó§@ªÌ
[µo°Ý]
¦p¦ó¶×¤JUTF-8 Ãþ«¬ªºÀÉ®×
¥»©«³Ì«á¥Ñ bioleon69 ©ó 2017-5-16 14:36 ½s¿è
²Ä¤@ºØ¤èªk
¦ý¬O·|¶}¥X·sªºWORKBOOK
Workbooks.Open Filename:="https://smart.tdcc.com.tw/opendata/getOD.ashx?id=2-8", Format:=2
²Ä¤GºØ¤èªk
·|ÅܶýX
Sub TESTCSV()
Set book1 = ActiveSheet
Set bookshow = book1.QueryTables _
.Add(Connection:="TEXT;https://smart.tdcc.com.tw/opendata/getOD.ashx?id=2-8", _
Destination:=book1.Range("A1"))
With bookshow
.TextFileParseType = xlDelimited
.TextFileCommaDelimiter = True
.Refresh
End With
End Sub
½Æ»s¥N½X
¨âºØ¤èªk³£®t¤@ÂI
¦³¿ìªk¯à°÷¦¨¥\¶×¤J¤@Ó¤u§@ªí¸Ì±¤£¶Ã½X¶Ü
ÁÂÁÂ[/code]
1.JPG
(125.75 KB)
¤U¸ü¦¸¼Æ:0
2017-5-16 14:36
¼Ó¥D¼ö©«
¿ÂÃÆ£x¯º¸Ü
±qÃÒ¥æ©Ò§ì¨ú¦¬½L»ùªºVBA¤èªk½Ð¯q
¸Uµ§¸ê®Æ§Ö³t¤ñ¹ï³B²z
¦p¦ó§ä¨ì¥¿½Tªººô§},ÅýEXCEL¶×¤JWEB¬d¸ß
§Q¥ÎVBA±N·j´M¤º®eÅã¥Ü¥X¨Ó(¼Æµ§¸ê®Æ)
ªí³æ²£¥Íªº¿ù»~(µLªk½s¿è,µLªkÃö³¬)
¿é¤JªÑ²¼¥N¸¹,¸ê®Æ¤º®eÅã¥Ü©ó¤w½s¿èªºªí®æ¤º
¯à§_¬ð¯}ºô¯¸ªº©T©wGET¼Æ¾Ú
Ãö©óvba ºô§ì®ÑÄy
¤p¬õ´U
¦¬ÂÃ
¤À¨É
VBA ±q0¶}©l
¥ý±q¾Ç·|¬ÝªºÀ´¶}©l
¥ý±q·|¦³°ò¥»×§ï¯à¤O¶}©l
¤@¨B¤@¨B¾Ç²ß¤¤
bioleon69
µoµu®ø®§
¥[¬°¦n¤Í
bioleon69
(¤pB)
·í«eÂ÷½u
UID
25706
©«¤l
62
¥DÃD
14
ºëµØ
0
¿n¤À
86
ª÷¿ú
86
ÂI¦W
0
§@·~¨t²Î
win10
³nÅ骩¥»
offffice2013
¾\ŪÅv
20
©Ê§O
¨k
¨Ó¦Û
¥x¥_
¦b½u®É¶¡
74 ¤p®É
µù¥U®É¶¡
2016-8-23
³Ì«áµn¿ý
2017-11-5
¡@¼ÊºÙ:
¤pB
¤¤¾Ç¥Í
©«¤l
62
¥DÃD
14
ºëµØ
0
¿n¤À
86
ÂI¦W
0
§@·~¨t²Î
win10
³nÅ骩¥»
offffice2013
¾\ŪÅv
20
©Ê§O
¨k
¨Ó¦Û
¥x¥_
µù¥U®É¶¡
2016-8-23
³Ì«áµn¿ý
2017-11-5
4
#
µoªí©ó 2017-5-17 09:43
|
¥u¬Ý¸Ó§@ªÌ
¦^´_
3#
ML089
XD©_©Ç §Ú¦Û¤v´ú¸Õ¬OOKªº~
ÁÙ¬OÁÂÁ¤j¤j¤À¨É³oÓ¥t¥~¤@ºØ¤èªk
ÁÙ¯S§O¤W¦â XDÆg
§Ú¨Ó¬ã¨s¤@¤U³oÓ¤èªk~
ÁÂÁÂ^^
VBA ±q0¶}©l
¥ý±q¾Ç·|¬ÝªºÀ´¶}©l
¥ý±q·|¦³°ò¥»×§ï¯à¤O¶}©l
¤@¨B¤@¨B¾Ç²ß¤¤
TOP
ML089
µoµu®ø®§
¥[¬°¦n¤Í
ML089
·í«eÂ÷½u
UID
3671
©«¤l
2025
¥DÃD
13
ºëµØ
0
¿n¤À
2053
ª÷¿ú
2053
ÂI¦W
0
§@·~¨t²Î
WIN7
³nÅ骩¥»
Office2007
¾\ŪÅv
100
©Ê§O
¨k
¨Ó¦Û
¥x¥_¥«
¦b½u®É¶¡
2405 ¤p®É
µù¥U®É¶¡
2011-3-2
³Ì«áµn¿ý
2024-3-14
ª©¥D
©«¤l
2025
¥DÃD
13
ºëµØ
0
¿n¤À
2053
ÂI¦W
0
§@·~¨t²Î
WIN7
³nÅ骩¥»
Office2007
¾\ŪÅv
100
©Ê§O
¨k
¨Ó¦Û
¥x¥_¥«
µù¥U®É¶¡
2011-3-2
³Ì«áµn¿ý
2024-3-14
3
#
µoªí©ó 2017-5-17 09:19
|
¥u¬Ý¸Ó§@ªÌ
¦^´_
2#
bioleon69
§Ú´ú¸Õ«áÁÙ¬O¶Ã½X
¥i¥H°Ñ¦Ò
https://www.mtmd.tw/mtmd_7236.htm
¥Î¿ý»s¥¨¶°¤è¦¡
'
' Macro3 Macro
'
'
ActiveWorkbook.Worksheets.Add
With ActiveSheet.QueryTables.Add(Connection:= _
"TEXT;
https://smart.tdcc.com.tw/opendata/getOD.ashx?id=2-8
", Destination:= _
Range("$A$1"))
.Name = "getOD.ashx?id=2-8"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.TextFilePromptOnRefresh = False
.TextFilePlatform = 65001
.TextFileStartRow = 1
.TextFileParseType = xlDelimited
.TextFileTextQualifier = xlTextQualifierDoubleQuote
.TextFileConsecutiveDelimiter = False
.TextFileTabDelimiter = False
.TextFileSemicolonDelimiter = False
.TextFileCommaDelimiter = True
.TextFileSpaceDelimiter = False
.TextFileColumnDataTypes = Array(1, 1, 1, 1, 1, 1, 1, 1, 1)
.TextFileTrailingMinusNumbers = True
.Refresh BackgroundQuery:=False
End With
End Sub
{...} ªí¥Ü»Ýn¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡
TOP
bioleon69
µoµu®ø®§
¥[¬°¦n¤Í
bioleon69
(¤pB)
·í«eÂ÷½u
UID
25706
©«¤l
62
¥DÃD
14
ºëµØ
0
¿n¤À
86
ª÷¿ú
86
ÂI¦W
0
§@·~¨t²Î
win10
³nÅ骩¥»
offffice2013
¾\ŪÅv
20
©Ê§O
¨k
¨Ó¦Û
¥x¥_
¦b½u®É¶¡
74 ¤p®É
µù¥U®É¶¡
2016-8-23
³Ì«áµn¿ý
2017-11-5
¡@¼ÊºÙ:
¤pB
¤¤¾Ç¥Í
©«¤l
62
¥DÃD
14
ºëµØ
0
¿n¤À
86
ÂI¦W
0
§@·~¨t²Î
win10
³nÅ骩¥»
offffice2013
¾\ŪÅv
20
©Ê§O
¨k
¨Ó¦Û
¥x¥_
µù¥U®É¶¡
2016-8-23
³Ì«áµn¿ý
2017-11-5
2
#
µoªí©ó 2017-5-16 22:50
|
¥u¬Ý¸Ó§@ªÌ
¥»©«³Ì«á¥Ñ bioleon69 ©ó 2017-5-16 22:51 ½s¿è
°ÝÃD¤w¸Ñ¨M~
¦³»Ýn¥i°Ñ¦Ò,¥H¤U¬°¸Ñ¨M¤èªk
Sub ´¡¤JUTF8«á§R°£()
Dim sh As Worksheet
ActiveSheet.Select
tabname = "TEST"
For Each sh In Worksheets
If sh.Name = tabname Then Exit Sub
Next
ControlFile = ActiveWorkbook.Name
Workbooks.Open Filename:="https://smart.tdcc.com.tw/opendata/getOD.ashx?id=2-8"
ActiveSheet.Name = tabname
Sheets(tabname).Copy After:=Workbooks(ControlFile).Sheets(1)
Application.DisplayAlerts = False
Workbooks("getod.ashx").Close
Application.DisplayAlerts = True
End Sub
½Æ»s¥N½X
VBA ±q0¶}©l
¥ý±q¾Ç·|¬ÝªºÀ´¶}©l
¥ý±q·|¦³°ò¥»×§ï¯à¤O¶}©l
¤@¨B¤@¨B¾Ç²ß¤¤
TOP
ÀR«ä¦Û¦b :
ÀR§¤±`®¦¤v¹L¡B¶¢½Í²ö½×¤H«D¡C
ªð¦^¦Cªí
¤U¤@¥DÃD
¤W¤@¥DÃD
EXCEL±MÄÝ°Q½×°Ï
Excel£¸¯ë°Ï
Excelµ{¦¡°Ï
¶i¶¥À³¥Î±M°Ï
OFFICE ¨t¦C
Word
PowerPoint
Access
Office¤£¤À°Ï
µ{¦¡»y¨¥
VB »P VB.Net
C »P C#
Java »P J#
µ{¦¡³]p¤£¤À°Ï
¸ê®Æ®w
ORACLE
My SQL
MS SQL
ºô¶³]p
ASP »P ASP.NET
PHP
PHP+MySQL ¤Jªù¹ê§@
JavaScript
FLASH / ActionScript
HTM/ HTML/ CSS
ºô¶³]p¤£¤À°Ï
¹q¸£»P§@·~¨t²Î
¹q¸£¦UºØµwÅé°Q½×
¤@¯ë¹q¸£³nÅé°Q½×
½×¾Â¨Æ°È
ºÞ²z¤½§i
§ë¶D¤Ï¬M
·s¤â´ú¸Õ
·R ¡E ¥Í¬¡
¤½¯q§G§iÄæ
¥Í¬¡»P·P°Ê
[¦¬Âæ¹¥DÃD]
[Ãöª`¦¹¥DÃDªº·s¦^´_]
[³q¹L QQ¡BMSN ¤À¨Éµ¹ªB¤Í]
¥Ó½Ð¤Í±¡Ãì±µ
Facebook¯»µ·