- ©«¤l
- 967
- ¥DÃD
- 0
- ºëµØ
- 0
- ¿n¤À
- 1001
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN XP
- ³nÅ骩¥»
- OFFICE 2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-11-29
- ³Ì«áµn¿ý
- 2022-5-17
 
|
¥»©«³Ì«á¥Ñ register313 ©ó 2012-1-5 17:15 ½s¿è
¦^´_ 9# an13755
¦^´_ 9# GBKEE
GBKEE²Ä¤@ª©
FileFormat:=xlText §ï¬° FileFormat:=xlTextPrinter (¥tÀxTXTÀÉ §ï¥tÀxPRNÀÉ)
¦ýPRNÀɨC¤@¦C¶W¹L240¦r¤¸(¦n¹³)´N·|¦Û°Ê´«¦æ- Option Explicit
- Sub ZZ()
- Dim Rng As Range, i As Integer
- Application.ScreenUpdating = False
- For i = 1 To 50
- ' i ¬O¼Æ¦r ->Sheets(i) ¬¡¶Ã¯µøµ¡¤W²Ä´XÓ¤u§@ªí
- 'i & "" Åܦ¨¦r¦ê ->Sheets(& "") ¤u§@ªíi
- Set Rng = Sheets(i & "").Range("A1:A20") 'Rng³]©w¬° ¤u§@ªíiªº½d³ò
- With Workbooks.Add(1) '·s¼W¬¡¶Ã¯(¤u§@ªí1±i)
- Rng.Copy .Sheets(1).Cells(1) '½Æ»s¨ì·s¼W¬¡¶Ã¯²Ä1 ±i¤u§@ªíªº[A1]
- .SaveAs Filename:="D:\" & i & ".txt", FileFormat:=xlTextPrinter, CreateBackup:=False
- .Close True
- End With
- Next i
- Application.ScreenUpdating = True
- End Sub
½Æ»s¥N½X |
|