- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
        
|
¥»©«³Ì«á¥Ñ GBKEE ©ó 2012-6-9 12:11 ½s¿è
¦^´_ 1# PJChen
¥t¦s¬° 2007µL¥¨¶°®æ¦¡ªº¬¡¶Ã¯ "xlsx"- Sub Ex()
- Dim xlPath As String, xlFile As String 'String: ¸ê®Æ«¬ºA
- Application.DisplayAlerts = False '°±¤î¨t²Îªº´£¥Ü
- xlPath = ThisWorkbook.Path & "\" 'ThisWorkbook.Path: µ{¦¡½X¬¡¶Ã¯©Ò¦sÀɪº¸ô®|; §A¥iקאּ«ü©wªº¸ô®|
- xlFile = Dir(xlPath & "*.xlsm") '«ü©wªº¸ô®|¤¤ ´M§ä°ÆÀɦW"xlsm"ªºÀÉ®×
- Do While xlFile <> "" '³B¸Ì §ä¨ì"xlsm"ªºÀÉ®×
- With Workbooks.Open(xlPath & xlFile) '¶}±Ò³oÀÉ®×
- .SaveAs Filename:=Mid(xlPath & xlFile, 1, Len(xlPath & xlFile) - 1) & "x", FileFormat:=51
- '³oÀÉ®×¥t¦s¬° 2007µL¥¨¶°®æ¦¡ªº¬¡¶Ã¯ "xlsx"
- .Close 'Ãö³¬ÀÉ®×
- End With
- xlFile = Dir '«ü©wªº¸ô®|¤¤Ä~Äò´M§ä°ÆÀɦW"xlsm"ªºÀÉ®×
- Loop
- If Dir(xlPath & "*.xlsm") <> "" Then Kill xlPath & "*.xlsm"
- '§R°£«ü©wªº¸ô®|¤¤©Ò¦³°ÆÀɦW"xlsm"ªºÀÉ®×
- Application.DisplayAlerts = True '«ì´_¨t²Îªº´£¥Ü
- End Sub
½Æ»s¥N½X |
|