- ©«¤l
- 79
- ¥DÃD
- 19
- ºëµØ
- 0
- ¿n¤À
- 148
- ÂI¦W
- 0
- §@·~¨t²Î
- WINDOW7
- ³nÅ骩¥»
- EXCEL 2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2017-5-21
- ³Ì«áµn¿ý
- 2023-3-13
|
¥»©«³Ì«á¥Ñ adrian_9832 ©ó 2017-11-27 23:02 ½s¿è
¦pªG§A¥ÎEXCEL 2003 ¥Î¥H¤Wªº¤èªk¬O¨S°ÝÃDªº
¦ý¦pªG§A¥Î2003¥H¤Wªºª©¥» ¥i¯àn¥ÎDIR ¤~¥i¥H¸Ñ¨M°ÝÃD ¹ï©óDIR §Ú¥u·|¦b¤å¥ó§¨¤ºÅª ¤l¥Ø¿ý¤ºªº¤åÀÉŪ¤£¥X¨Ó §A¸Õ¸Õ³oÓ§a ¬O¥H«e³oӽ׾ªº«e½ú±Ð¤U¨Óªº¤è¦¡
Sub ¦C¥XÀÉ®×()
path1 = "C:\Users\Desktop\test\·s¼W¸ê®Æ§¨\*.xls"
file1 = Dir(path1): r = 1
i = 1
Do While file1 <> ""
Cells(r, 1) = file1
r = r + 1
file1 = Dir '¨ú±o¤U¤@ÓÀɦW
Loop
Do Until Cells(i, 1) = ""
If Cells(i, 1) <> Empty Then
Cells(i, 1) = Left(Cells(i, 1), 2) '<------2¥Nªí§An®³ÀɮצW ±q¥ªÃä°_¦h¤ÖÓ¦r
i = i + 1
End If
Loop
End Sub
¸Ô²Ó¥i¥H°Ñ¦Ò³o¦ì«e½ú ¹ï©ó search¤l¥Ø¿ý ªº³o½g©«¤l
http://forum.twbts.com/thread-40-1-1.html |
|