Private Sub copy_all() Dim i As Integer For i = 1 To 41 'Worksheets.Add After:=Sheets(Sheets.Count) '最後にシート作成 Workbooks("true.xls").Worksheets("書換中").Copy After:=Workbooks("detabase.xls").Sheets("使い方") Workbooks("detabase.xls").ActiveSheet.Name = Workbooks("true.xls").Worksheets(1).Cells(i, 4) Workbooks("detabase.xls").ActiveSheet.Range("C1") = Workbooks("true.xls").Worksheets(1).Cells(i, 4) Workbooks("detabase.xls").ActiveSheet.Range("G2") = "(追加)" Next End Sub
更新@2011.01.04 23:40
コメント