Excelãã¡ã¤ã«ãã·ã¼ãæ¯ã«åå²ãã
Excelãã¡ã¤ã«(ããã¯)ãã·ã¼ãæ¯ã«åå²ãã¦ä¿åãããã¨ãããã¨ãç¨ã«ããã
1. åå²ãããExcelãã¡ã¤ã«(ããã¯)ã«ä»¥ä¸ã®ãã¯ããç»é²ããã
2. ãã¯ããå®è¡ããã
3. ã·ã¼ãåããã¡ã¤ã«åã«ãªã£ãExcelãã¡ã¤ã«(ããã¯)ãã§ããããã
Sub åå²() Dim i As Integer Dim N As Integer 'ãã¡ã¤ã«ä½ææ°ã®ã«ã¦ã³ã¿ Dim Filename As String 'ä¿åãããã¡ã¤ã«å Application.ScreenUpdating = False 'ç»é¢æ´æ°ãåæ¢ i = 1 Do While i <= Worksheets.Count Filename = Worksheets(i).Name Worksheets(i).Copy With ActiveWorkbook .SaveAs ThisWorkbook.Path & "\" & Filename & ".xls" 'å ãã¡ã¤ã«ã¨åãã©ã«ãã«ä¿åãã .Close N = N + 1 End With i = i + 1 Loop Application.ScreenUpdating = True 'ç»é¢æ´æ°ãåé MsgBox N & " åã®ããã¯ãä½æãã¾ããã" End Sub
ãã¹ã¯ãããã§å®è¡ãã¦ããã¹ã¯ããããExcelã¢ã¤ã³ã³ã§åã¾ã£ã...ã