- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 62
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2025-3-13
               
|
¦^´_ 3# tomking
¦P¥Ø¿ý¤¤ªºÀɦW¬O¤£¥i¯à¦P¦W
¹ê¦b¬Ý¤£À´§A·Qnªº¥Øªº¬O¬Æ»ò?
¥H¤Uµ{¦¡½X·|±N¥H"_"¬°³s±µ²Å¸¹ªºÀɦW(§A©ÒÁ|¨ÒªºÀɦW)¤À¦¨¬y¤ô¸¹»P®É¶¡¨â³¡¤À
µM«á±Nµ²ªGÅã¥Ü¨ìA:B¨âÄæ- Sub nn()
- Dim Ar()
- With Application.FileDialog(msoFileDialogFolderPicker)
- .Show
- If .ButtonName = "½T©w" Then
- fd = .SelectedItems(1) & "\"
- End If
- End With
- fs = Replace(Dir(fd & "*.txt"), ".txt", "") '°ÆÀɦW¬°txtÀÉ®×
- Do Until fs = ""
- a = Split(fs, "_") '¬y¤ô¸¹»P®É¶¡³s±µ²Å¸¹¬°"_"
- ReDim Preserve Ar(s)
- Ar(s) = a
- s = s + 1
- fs = Dir
- Loop
- If s > 0 Then [A1].Resize(s, 2) = Application.Transpose(Application.Transpose(Ar))
- End Sub
½Æ»s¥N½X |
|