- ©«¤l
- 835
- ¥DÃD
- 6
- ºëµØ
- 0
- ¿n¤À
- 915
- ÂI¦W
- 16
- §@·~¨t²Î
- Win 10,7
- ³nÅ骩¥»
- 2019,2013,2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-3
- ³Ì«áµn¿ý
- 2024-11-14
|
´ú¸ÕÀÉ :
'קïÀÉ®×Ãþ«¬--------------------------------- ¡¥¦C9
oPath = ThisWorkbook.Pa ...
ziv976688 µoªí©ó 2020-12-3 14:19
¨ä¹ê°ÝÃDªºÄpµ²¦b©ó.csvÀɮתº®æ¦¡»P .xls Àɮפ£²Å,
§A¥u»Ýn¥Î °O¨Æ¥» ¥h¶}±Ò .csv ÀÉ®×´N·|µo²{¥¦¨ä¹ê¬OÓ(¸ê®Æ »P , ¤Î ´«¦æ¦r¤¸ ²Õ¦X¦¨ªº)¤å¦rÀɦӤw, ªí²{§Î¦¡¹³¬O :
´Á¶Z¼Æ,1,10,29,38,47,2,11,20,39,48,3,12,21
Excel µ{¦¡¯à°÷¥¿±`¶}±Ò¬O¦]¬°¥L¦³°w¹ï csv ÀÉ®× °µ³B²z,
¦ý§A«o¥u¬O§â°ÆÀɦW§ï¦¨.xls ¥¦´N¨S¿ìªk¤F.
·Q¸Ñ¨M¥i¥H¥ÎExcel¶}±Ò .csv ÀɮצA¥t¦s¦¨ .xls ÀɮקY¥i.- oPath = ThisWorkbook.Path '¸ô®|
- A = Dir(oPath & "\*.CSV")
- Do While A <> ""
- Oldname = oPath & "\" & A
- A = Left(A, Len(A) - 4) ' ¥h±¼ .csv
- With Workbooks.Open(Oldname)
- .Sheets(1).Name = "Data" ' ¶}±Ò .csv ÀÉ®×®É, Sheet Name¹w³]¬OÀɦW, ·|µo¥Í¿ù»~,¶}Àɮɷ|¦³°T®§°Ý¬O§_n×¥¿
- A = Replace(A, "°ò·Ç¤é¡G", "")
- A = "49_´Á¶Z§RµP_" & A '·s¼W»Ý¨D:¦A±NÀɮצWºÙ«e§å§ï¼W¥[ "49_´Á¶Z§RµP_"
- .SaveAs Filename:=oPath & "\" & A, FileFormat:=xlWorkbookNormal
½Æ»s¥N½X
49_´Á¶Z§RµP_00±Æ§Ç_ªÅ¼ÆÁ`Äý-(VBA)-Ans.zip (66.7 KB)
|
|