µù¥U
µn¿ý
º¶
½×¾Âª©³W
¸T¤î¦Cªí
»¡©ú
¦a¹Ï
¼Æ¦ì®Ñ»
¨p¤H®ø®§ (0)
¤½¦@®ø®§ (0)
½×¾Â¥ô°È (0)
¨t²Î®ø®§ (0)
¦n¤Í®ø®§ (0)
©«¤l®ø®§ (0)
³Â»¶®a±Ú°Q½×ª©ª©
»
Excelµ{¦¡°Ï
» vba txt¥~³¡¸ê®Æ¶×¤J/¶×¥X°ÝÃD
ªð¦^¦Cªí
¤U¤@¥DÃD
¤W¤@¥DÃD
µo©«
[µo°Ý]
vba txt¥~³¡¸ê®Æ¶×¤J/¶×¥X°ÝÃD
mark15jill
µoµu®ø®§
¥[¬°¦n¤Í
mark15jill
(ÀH·ÄÆ¿ºªº¦Ð¤ò)
·í«eÂ÷½u
[±s¥Î]¼ç¤ô¸¥
UID
4247
©«¤l
852
¥DÃD
79
ºëµØ
0
¿n¤À
918
ª÷¿ú
918
ÂI¦W
0
§@·~¨t²Î
Windows 7 , XP
³nÅ骩¥»
Office 2007, Office 2003,Office 2010,YoZo Office
¾\ŪÅv
50
©Ê§O
¨k
¨Ó¦Û
¦t©z
¦b½u®É¶¡
414 ¤p®É
µù¥U®É¶¡
2011-4-8
³Ì«áµn¿ý
2024-2-21
¡@¼ÊºÙ:
ÀH·ÄÆ¿ºªº¦Ð¤ò
¡@ÀY»Î:
[±s¥Î]¼ç¤ô¸¥
°ª¤¤¥Í
©«¤l
852
¥DÃD
79
ºëµØ
0
¿n¤À
918
ÂI¦W
0
§@·~¨t²Î
Windows 7 , XP
³nÅ骩¥»
Office 2007, Office 2003,Office 2010,YoZo Office
¾\ŪÅv
50
©Ê§O
¨k
¨Ó¦Û
¦t©z
µù¥U®É¶¡
2011-4-8
³Ì«áµn¿ý
2024-2-21
1
#
¸õÂà¨ì
»
˧Ǭݩ«
¥´¦L
¦rÅé¤j¤p:
t
T
µoªí©ó 2013-3-7 15:01
|
¥u¬Ý¸Ó§@ªÌ
[µo°Ý]
vba txt¥~³¡¸ê®Æ¶×¤J/¶×¥X°ÝÃD
½×¾Â¤º¦³¨Ç¤å³¹¬O´yz Txt¶×¥X¶×¤J¤§±¡§Î¡A
¦ý¹ï©ó txt¦C¼Æpºâ¦ü¥G¨S´£¨ì«Ü¦h
¤p§Ì¦b¦¹´£¥X´XÂIºÃ°Ý¡A·Ð½Ð¦U¦ì«e½ú«ü±Ð¡C
1. .TextFileStartRow =
2
'¦¹¥N½X¬° ±q²Ä¤G¦C§@¬°°ò·Ç¡A¨Ã¥[¥H¶×¤J
¦¹¬qªº 2 ¬O§_¥i¥Î´À¥N¤è®×¥h§ó´«¡A¦p KKS = 2 .TextFileStartRow = KKS
2. Y¤å¥óÀɮסA¤å¦r¬O¥Rº¡ªº¸Ü¡A¬O¥i¥H¨Ì·Ó¤@¦C¦³¦h¤ÖÓ¦r¼Æ¤U¥h°µ§PÂ_
¦pÁ`¦r¼Æ100 ¡A ³æ¦C¦r¼Æ40 «h¬°3¦C ( (100/40 ) +1 µL±ø¥ó¶i¦ìªk)
¦ýY²o§è¨ì ªÅ¥Õ¦C ¡B ¯S®í²Å¸¹ ¬q¦æ ¦Û°Ê´«¦æ «h¦¹¤èªk±ÏµL®Ä¡A¬O§_¦³¸Ñ?
3. ¦bpºâÁ`¦r¼Æ®É¡A¦pText¤º®e¦r¼Æ¬° 100 ¦r¡A¦ýpºâ®É¡A¦³®ÉÔ·|¥X²{102¦r <µLªÅ®æ¡BÂ_¦æ>
½Ð°Ý³o¬O¬Æ»òì¦]¡H
With ActiveSheet.QueryTables.Add(Connection:="TEXT;D:\123.txt", Destination _
:=Range("$d$1"))
.Name = "123"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.TextFilePromptOnRefresh = False
.TextFilePlatform = 950
.TextFileStartRow = 2
.TextFileParseType = xlDelimited
.TextFileTextQualifier = xlTextQualifierDoubleQuote
.TextFileConsecutiveDelimiter = False
.TextFileTabDelimiter = True
.TextFileSemicolonDelimiter = False
.TextFileCommaDelimiter = False
.TextFileSpaceDelimiter = False
.TextFileColumnDataTypes = Array(2)
.TextFileTrailingMinusNumbers = True
.Refresh BackgroundQuery:=False
End With
½Æ»s¥N½X
¼Ó¥D¼ö©«
Office 2010 ¤ë¾ä±±¨î¶µ·s¼W
¦hµ§EXCEL·j´Mªº¥Îªk[¤w¸Ñ¨M 2011-05-11]
½Ð°Ý1¨Ç·h²¾ªº°ÝÃD
[¶¢²á]½s¼gµ{¦¡®É¡A«Øijªº´X¥ó¨Æ±¡ "n°µ"
Ãö©ó¿z¿ï»P¨äI´ºÃC¦â³]©w°ÝÃD
Ãö©óÀx¦s®æ ¨â¬qªº°ÝÃD
µL²á§@ªº¤p®ÉÄÁ...
·Q½Ð°ÝÃö©ó¤@¨Ç¦Û°Ê¤Æ®æ¦¡³]©wªº°ÝÃD
½Ð°Ý¬O§_¥i¥H¥ÎVBA ¦Û°ÊÀˬd«½Æ¦WºÙ
¤À¨ÉÓµL²á¤pµ{¦¡...
¦¬ÂÃ
¤À¨É
¦h°µ¦h·Q¦h¾Ç²ß¡A¤Ö¬Ý¤Ö¿ù¤Ö°g³~
¦h°µ=¦h¦h½m²ß¡A¦h¦h½s¼g¡C
¦h·Q=·Q·Q¬°¤°»ò¤H®aµ{¦¡n¨º¼Ë¼g¡A¦pªG´«¦¨¦Û¤v¡A¤S·|«ç¼g¡C
¦h¾Ç²ß=¾Ç²ß¤H®aªºµo°Ý¨Ã¸Ñµª¡A¾Ç²ß¤H®aªº¼gªk
¤Ö¬Ý=¥u¬Ý¤£°µ¤]ªPµM
ÀR«ä¦Û¦b :
µêªÅ¦³ºÉ¡D§ÚÄ@µL½a¡AµoÄ@®e©ö¦æÄ@Ãø¡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¯»µ·