Sub
Kopiere()
Dim
i
As
Integer
Application.ScreenUpdating =
False
With
Worksheets(
"Tabelle1"
)
For
i = 10
To
12
With
Worksheets(
"Verteiler_Vorlage"
)
.Visible =
True
.Copy after:=Sheets(Sheets.Count)
.Visible =
False
End
With
.UsedRange.Range(
"A:B"
).Copy ActiveSheet.Cells(1)
.UsedRange.Range(
"F:F"
).Copy ActiveSheet.Cells(3)
.UsedRange.Range(
"E:E"
).Copy ActiveSheet.Cells(4)
.UsedRange.Columns(i).Copy ActiveSheet.Cells(1, 10)
ActiveSheet.Name = Cells(1, 10)
.UsedRange.Range(
"H:H"
).Copy ActiveSheet.Cells(11)
.UsedRange.Range(
"G:G"
).Copy ActiveSheet.Cells(12)
.UsedRange.Range(
"I:I"
).Copy ActiveSheet.Cells(13)
With
Intersect(Range(
"E:J"
), Rows(Cells.SpecialCells(xlCellTypeLastCell).Row + 1))
.FormulaR1C1 =
"=Sum(R1C:R[-1]C)"
.Formula = .Value
.HorizontalAlignment = xlCenter
End
With
Next
End
With
End
Sub