- ©«¤l
- 976
- ¥DÃD
- 7
- ºëµØ
- 0
- ¿n¤À
- 1018
- ÂI¦W
- 0
- §@·~¨t²Î
- Win10
- ³nÅ骩¥»
- Office 2016
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-4-19
- ³Ì«áµn¿ý
- 2025-1-10
|
¦^´_ 3# zz0660
¥t¤@Ó·Qªk¡AÅý¨Ï¥ÎªÌ¿ï¨úÀÉ®×(¥i¦P®É¿ï¾Ü¦hÓ)¡A½Ð´ú¸Õ¬Ý¬Ý¡AÁÂÁ¡C
Sub test1()
Dim fs, f, R As Range, fc%, x%
Application.ScreenUpdating = False
Set fs = CreateObject("Scripting.FileSystemObject")
With Application.FileDialog(msoFileDialogOpen)
.InitialFileName = "D:\"
.AllowMultiSelect = True
.Show
fc = .SelectedItems.Count
If fc = 0 Then Exit Sub
For x = 1 To fc
FPath = .SelectedItems(x)
Set f = fs.OpenTextFile(FPath, 2) '8:«O¯dì¸ê®Æ¡F2:²M°£ì¸ê®Æ
For Each R In [A2:A32]: f.WriteLine (R): Next
f.Close
Next
End With
Set fs = Nothing: Set f = Nothing
Application.ScreenUpdating = True
End Sub |
|