- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 255
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-11-25
|
¦^´_ 10# donod
¿ù¦bþ¸Ì?
1.§A³oÓÀɦpªG¬O¤w¸g¦sÀÉ
ThisWorkbook.Path¤w¸g·|¶Ç¦^§A³oÓÀɮתº¸ê®Æ§¨¦ì¸m
fs = ThisWorkbook.Path & "D:\test5.xlsx"
³o¼Ëfs´N¤w¸g¤£¬O"D:\test5.xlsx"¤F
Workbooks.Open´N·|²£¥Í§ä¤£¨ìÀɮתº¿ù»~
2.§A§âµ{¦¡½X¼g¦b¤u§@ªí¼Ò²Õ¤º¡A¦ÓWith Sheets(1)±Ôz°Ï¬q¤º
¨S¦³¥[¤W.(¥y¸¹)´N·|«ü¦Vµ{¦¡©Ò¦b¤u§@ªí¤ºªºÀx¦s®æ
.Columns("A:A").TextToColumns Destination:=.Range("A1"), DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=True, _
Semicolon:=True, Comma:=False, Space:=False, Other:=False, FieldInfo _
:=Array(Array(1, 1), Array(2, 1), Array(3, 1), Array(4, 1), Array(5, 1), Array(6, 1), _
Array(7, 1)), TrailingMinusNumbers:=True
¥u®t¦b¬õ¦âªºÂIDestination:=.Range("A1") |
|