- ©«¤l
- 561
- ¥DÃD
- 160
- ºëµØ
- 0
- ¿n¤À
- 725
- ÂI¦W
- 0
- §@·~¨t²Î
- WINDOWS
- ³nÅ骩¥»
- xp
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ®ç¶é
- µù¥U®É¶¡
- 2014-9-10
- ³Ì«áµn¿ý
- 2024-8-7
|
dear ã ¤j¤j
1.¨Ï¥Î ·sªí.Name = Split(Split(T, ".")(0),"\")(1)
¥X²{ "°õ¦æ¶¥¬q¿ù»~9-°}¦C¯Á¤Þ¶W¥X½d³ò"
2.·Ð¤£§[½ç±Ð thanks*10000
Sub TXT()
Dim ¦¹ªí, ·sªí
oPath$ = "\\89.80.70.1\exp\abfs_sm_via\jyk158a"
Set ¦¹ªí = ActiveSheet
T$ = Dir(oPath & "\" & [A1] & "*")
Do While T <> ""
Set ·sªí = Sheets.Add(after:=Sheets(Sheets.Count))
·sªí.Name = Split(Split(T, ".")(0), "\")(1)
With Workbooks.Open(oPath & "\" & T)
.Sheets(1).UsedRange.Copy ·sªí.[A1]
.Close False
End With
T = Dir
Loop
¦¹ªí.Activate
End Sub |
|