Application.ScreenUpdating =
False
With
Worksheets(
"Master"
)
.Range(
"A:AAA"
).AutoFilter Field:=9, Criteria1:=
"=Bonn"
, _
Operator:=xlOr, Criteria2:=
"=Bonn"
If
.Cells(Rows.Count, 1).
End
(xlUp).Row > 1
Then
For
i = 10
To
21
With
Worksheets(
"Verteiler_Vorlage"
)
.Visible =
True
.Copy After:=Sheets(Sheets.Count)
.Visible =
False
End
With
NEXT
Else
Application.ScreenUpdating =
False
With
Worksheets(
"Master"
)
.Range(
"A:AAA"
).AutoFilter Field:=9, Criteria1:=
"=Berlin"
, _
Operator:=xlOr, Criteria2:=
"=Berlin"
If
.Cells(Rows.Count, 1).
End
(xlUp).Row > 1
Then
For
i = 10
To
21
With
Worksheets(
"Verteiler_Vorlage"
)
.Visible =
True
.Copy After:=Sheets(Sheets.Count)
.Visible =
False
End
With
NEXT
With
Worksheets(
"Master"
)
.Range(
"A:AAA"
).AutoFilter Field:=9, Criteria1:=
"=Augsburg"
If
.Cells(Rows.Count, 1).
End
(xlUp).Row > 1
Then
For
i = 17
To
19
With
Worksheets(
"Verteiler_Vorlage"
)
.Visible =
True
.Copy After:=Sheets(Sheets.Count)
.Visible =
False
End
With