シートを増やす
元の名前を取っておかないと、元シートのデータを参照する事ができなくなる
motoSheet = ActiveSheet.Name
Sheets.Add
ActiveSheet.Name = "step2"
For C = 1 To 45
Sheets("step2").Cells(C).ColumnWidth = Sheets(motoSheet).Cells(C).ColumnWidth
Sheets("step2").Cells(C).NumberFormatLocal = Sheets(motoSheet).Cells(C).NumberFormatLocal
Sheets("step2").Cells(C).VerticalAlignment = Sheets(motoSheet).Cells(C).VerticalAlignment
Next
コメントする