æåä¸ä¸ªExcelå·¥ä½ç°¿ä¸çå¤ä¸ªå·¥ä½è¡¨æ¹æ³ï¼
1ãæå¼éè¦ç¼è¾çExcelææ¡£ãå·¥ä½ç°¿ä¸æ¹æå¾å¤å·¥ä½è¡¨ãç°å¨éè¦å°è¿äºå·¥ä½è¡¨åç¬æåå¼æä¸ä¸ªä¸ªå·¥ä½ç°¿ã
2ãå³é®ä»»æä¸ä¸ªå·¥ä½è¡¨æ ç¾ï¼å¨å¼¹åºçä¸æå表ä¸éæ©æ¥ç代ç ãå³å¼¹åºä»£ç çªå£ã
3ãç¹å»èåæå
¥-模å å¨å¼¹åºç模å对è¯æ¡ä¸ è¾å
¥ä»¥ä¸ä»£ç ï¼
Private Sub åæå·¥ä½è¡¨()
Dim sht As Worksheet
Dim MyBook As Workbook
Set MyBook = ActiveWorkbook
For Each sht In MyBook.Sheets
sht.Copy
ActiveWorkbook.SaveAs Filename:=MyBook.Path & "\" & sht.Name, FileFormat:=xlNormal 'å°å·¥ä½ç°¿å¦å为EXCELé»è®¤æ ¼å¼
ActiveWorkbook.Close
Next
MsgBox "æ件已ç»è¢«åæå®æ¯!"
End Sub
4ãåå»è¿è¡-è¿è¡åè¿ç¨|çªä½ å ç§è¿å å¼¹åºæ示çªå£âæ件已被æåå®æ¯âã
5ãè¿åExcelå·¥ä½ç°¿æ件æå¨è·¯å¾ æ¥çåå
å·¥ä½ç°¿ä¸çå·¥ä½è¡¨å·²ç»æ为åç¬çå·¥ä½ç°¿äºï¼ä¸ä¿¡ å¯ä»¥å¯¹ç
§æ¥çå¾ä¸çä¿®æ¹æ¥æ ã
温馨提示:答案为网友推荐,仅供参考