- ©«¤l
- 219
- ¥DÃD
- 24
- ºëµØ
- 0
- ¿n¤À
- 243
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows10
- ³nÅ骩¥»
- Office2016
- ¾\ŪÅv
- 20
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2012-4-18
- ³Ì«áµn¿ý
- 2022-2-7
|
¥»©«³Ì«á¥Ñ HSIEN6001 ©ó 2012-7-12 12:14 ½s¿è
¦^´_ 14# GBKEE
½Ð°ÝGBKEE¤j,¦p¦ó§¹¦¨
»Ý¨D¡G
¸ê®Æ§¨¤º "ANY*.xls" ªº©Ò¦³ÀɦW
¦pªG¸Óªí®æSheets(1).Range("A2") <> "¤é´Á"
´N§R°£¸ÓÀÉ®×.xls- Sub Ex()
- Dim F As String, xpath As String, xfile As String
- xpath = "D:\´ú¸Õ\"
- xfile = Dir(xpath & "ANY*.xls")
- Do While xfile <> ""
- If Sheets(1).Range("A2") <> "¤é´Á" Then
- With ActiveWorkbook
- F = .FullName '¶Ç¦^ª«¥óªº¦WºÙ¡A¥]¬A¨äºÏºÐ¸ô®|
- .Close 0 'Ãö³¬ÀÉ®×
- End With
- Kill F '§R°£ÀÉ®×"123.xls
- End If
- xfile = Dir
- Loop
- End Sub
½Æ»s¥N½X °õ¦æµ²ªG·|ª½±µÃö³¬¥¨¶°¸ÓÀÉ®× |
|