Sub
Januar()
Dim
Therapeut
As
String
Dim
i
As
Integer
Therapeut = ComboBox1.Text
Tabelle2.Cells(2, 1) =
""
Tabelle2.Range(
"D5:T28"
) =
""
Tabelle2.Cells(2, 1) = Therapeut
For
i = 1
To
Tabelle4.Cells(Rows.Count,
"G"
).
End
(xlUp).Row
If
Tabelle4.Cells(i,
"G"
) = Therapeut
And
Mid(Tabelle4.Cells(i, 2), 3, 4) =
".01."
And
Tabelle4.Cells(i,
"I"
) =
"Leistungsbereich xx"
And
Tabelle4.Cells(i,
"H"
) =
"Behandlung beendet"
Then
Tabelle2.Cells(5, 4) = Tabelle4.Cells(i, 5) + Tabelle2.Cells(5, 4)
End
If
Next
i
For
i = 1
To
Tabelle4.Cells(Rows.Count,
"G"
).
End
(xlUp).Row
If
Tabelle4.Cells(i,
"G"
) = Therapeut
And
Mid(Tabelle4.Cells(i, 2), 3, 4) =
".01."
And
Tabelle4.Cells(i,
"I"
) =
"Leistungsbereich xx"
And
Tabelle4.Cells(i,
"H"
) =
"Behandlung beendet"
Then
Tabelle2.Cells(6, 4) = Tabelle4.Cells(i, 5) + Tabelle2.Cells(6, 4)
End
If
Next
i
For
i = 1
To
Tabelle4.Cells(Rows.Count,
"G"
).
End
(xlUp).Row
If
Tabelle4.Cells(i,
"G"
) = Therapeut
And
Mid(Tabelle4.Cells(i, 2), 3, 4) =
".01."
And
Tabelle4.Cells(i,
"I"
) =
"Leistungsbereich xx"
And
Tabelle4.Cells(i,
"H"
) =
"Ausfall"
Then
Tabelle2.Cells(5, 5) = Tabelle4.Cells(i, 5) + Tabelle2.Cells(5, 5)
End
If
Next
i
For
i = 1
To
Tabelle4.Cells(Rows.Count,
"G"
).
End
(xlUp).Row
If
Tabelle4.Cells(i,
"G"
) = Therapeut
And
Mid(Tabelle4.Cells(i, 2), 3, 4) =
".01."
And
Tabelle4.Cells(i,
"I"
) =
"Leistungsbereich xx"
And
Tabelle4.Cells(i,
"H"
) =
"Ausfall"
Then
Tabelle2.Cells(6, 5) = Tabelle4.Cells(i, 5) + Tabelle2.Cells(6, 5)
End
If
Next
i
For
i = 1
To
Tabelle4.Cells(Rows.Count,
"G"
).
End
(xlUp).Row
If
Tabelle4.Cells(i,
"G"
) = Therapeut
And
Mid(Tabelle4.Cells(i, 2), 3, 4) =
".01."
And
Tabelle4.Cells(i,
"I"
) =
"Leistungsbereich xx"
And
Tabelle4.Cells(i,
"H"
) =
"Abgesagt"
Then
Tabelle2.Cells(5, 6) = Tabelle4.Cells(i, 5) + Tabelle2.Cells(5, 6)
End
If
Next
i
For
i = 1
To
Tabelle4.Cells(Rows.Count,
"G"
).
End
(xlUp).Row
If
Tabelle4.Cells(i,
"G"
) = Therapeut
And
Mid(Tabelle4.Cells(i, 2), 3, 4) =
".01."
And
Tabelle4.Cells(i,
"I"
) =
"Leistungsbereich xx"
And
Tabelle4.Cells(i,
"H"
) =
"Abgesagt"
Then
Tabelle2.Cells(6, 6) = Tabelle4.Cells(i, 5) + Tabelle2.Cells(6, 6)
End
If
Next
i
For
i = 1
To
Tabelle4.Cells(Rows.Count,
"G"
).
End
(xlUp).Row
If
Tabelle4.Cells(i,
"G"
) = Therapeut
And
Mid(Tabelle4.Cells(i, 2), 3, 4) =
".01."
And
Tabelle4.Cells(i,
"I"
) =
"Leistungsbereich xx"
And
Tabelle4.Cells(i,
"H"
) =
"Vor-, Nachbereitungszeit (Therapeut)"
Then
Tabelle2.Cells(5, 7) = Tabelle4.Cells(i, 5) + Tabelle2.Cells(5, 7)
End
If
Next
i
For
i = 1
To
Tabelle4.Cells(Rows.Count,
"G"
).
End
(xlUp).Row
If
Tabelle4.Cells(i,
"G"
) = Therapeut
And
Mid(Tabelle4.Cells(i, 2), 3, 4) =
".01."
And
Tabelle4.Cells(i,
"I"
) =
"Leistungsbereich xx"
And
Tabelle4.Cells(i,
"H"
) =
"Vor-, Nachbereitungszeit (Therapeut)"
Then
Tabelle2.Cells(6, 7) = Tabelle4.Cells(i, 5) + Tabelle2.Cells(6, 7)
End
If
Next
i
For
i = 1
To
Tabelle4.Cells(Rows.Count,
"G"
).
End
(xlUp).Row
If
Tabelle4.Cells(i,
"G"
) = Therapeut
And
Mid(Tabelle4.Cells(i, 2), 3, 4) =
".01."
And
Tabelle4.Cells(i,
"I"
) =
"Leistungsbereich xx"
And
Tabelle4.Cells(i,
"H"
) =
"Urlaub (Therapeut)"
Then
Tabelle2.Cells(5, 8) = Tabelle2.Cells(5, 8) + 1
End
If
Next
i
For
i = 1
To
Tabelle4.Cells(Rows.Count,
"G"
).
End
(xlUp).Row
If
Tabelle4.Cells(i,
"G"
) = Therapeut
And
Mid(Tabelle4.Cells(i, 2), 3, 4) =
".01."
And
Tabelle4.Cells(i,
"I"
) =
"Leistungsbereich xx"
And
Tabelle4.Cells(i,
"H"
) =
"Urlaub (Therapeut)"
Then
Tabelle2.Cells(6, 8) = Tabelle2.Cells(6, 8) + 1
End
If
Next
i
For
i = 1
To
Tabelle4.Cells(Rows.Count,
"G"
).
End
(xlUp).Row
If
Tabelle4.Cells(i,
"G"
) = Therapeut
And
Mid(Tabelle4.Cells(i, 2), 3, 4) =
".01."
And
Tabelle4.Cells(i,
"I"
) =
"Leistungsbereich xx"
And
Tabelle4.Cells(i,
"H"
) =
"Krank (Therapeut)"
Then
Tabelle2.Cells(5, 9) = Tabelle2.Cells(5, 9) + 1
End
If
Next
i
For
i = 1
To
Tabelle4.Cells(Rows.Count,
"G"
).
End
(xlUp).Row
If
Tabelle4.Cells(i,
"G"
) = Therapeut
And
Mid(Tabelle4.Cells(i, 2), 3, 4) =
".01."
And
Tabelle4.Cells(i,
"I"
) =
"Leistungsbereich xx"
And
Tabelle4.Cells(i,
"H"
) =
"Krank (Therapeut)"
Then
Tabelle2.Cells(6, 9) = Tabelle2.Cells(6, 9) + 1
End
If
Next
i
For
i = 1
To
Tabelle4.Cells(Rows.Count,
"G"
).
End
(xlUp).Row
If
Tabelle4.Cells(i,
"G"
) = Therapeut
And
Mid(Tabelle4.Cells(i, 2), 3, 4) =
".01."
And
Tabelle4.Cells(i,
"I"
) =
"Leistungsbereich xx"
And
Tabelle4.Cells(i,
"H"
) =
"Fortbildung (Therapeut)"
Then
Tabelle2.Cells(5, 10) = Tabelle2.Cells(5, 10) + 1
End
If
Next
i
For
i = 1
To
Tabelle4.Cells(Rows.Count,
"G"
).
End
(xlUp).Row
If
Tabelle4.Cells(i,
"G"
) = Therapeut
And
Mid(Tabelle4.Cells(i, 2), 3, 4) =
".01."
And
Tabelle4.Cells(i,
"I"
) =
"Leistungsbereich xx"
And
Tabelle4.Cells(i,
"H"
) =
"Fortbildung (Therapeut)"
Then
Tabelle2.Cells(6, 10) = Tabelle2.Cells(6, 10) + 1
End
If
Next
i
For
i = 1
To
Tabelle4.Cells(Rows.Count,
"G"
).
End
(xlUp).Row
If
Tabelle4.Cells(i,
"G"
) = Therapeut
And
Mid(Tabelle4.Cells(i, 2), 3, 4) =
".01."
And
Tabelle4.Cells(i,
"I"
) =
"Leistungsbereich xx"
And
Tabelle4.Cells(i,
"H"
) =
"Orgazeit (Therapeut)"
Then
Tabelle2.Cells(5, 11) = Tabelle4.Cells(i, 5) + Tabelle2.Cells(5, 11)
End
If
Next
i
For
i = 1
To
Tabelle4.Cells(Rows.Count,
"G"
).
End
(xlUp).Row
If
Tabelle4.Cells(i,
"G"
) = Therapeut
And
Mid(Tabelle4.Cells(i, 2), 3, 4) =
".01."
And
Tabelle4.Cells(i,
"I"
) =
"Leistungsbereich xx"
And
Tabelle4.Cells(i,
"H"
) =
"Orgazeit (Therapeut)"
Then
Tabelle2.Cells(6, 11) = Tabelle4.Cells(i, 5) + Tabelle2.Cells(6, 11)
End
If
Next
i
For
i = 1
To
Tabelle4.Cells(Rows.Count,
"G"
).
End
(xlUp).Row
If
Tabelle4.Cells(i,
"G"
) = Therapeut
And
Mid(Tabelle4.Cells(i, 2), 3, 4) =
".01."
And
Tabelle4.Cells(i,
"I"
) =
"Leistungsbereich xx"
And
Tabelle4.Cells(i,
"H"
) =
"Noch nicht erschienen"
Then
Tabelle2.Cells(5, 12) = Tabelle4.Cells(i, 5) + Tabelle2.Cells(5, 12)
End
If
Next
i
For
i = 1
To
Tabelle4.Cells(Rows.Count,
"G"
).
End
(xlUp).Row
If
Tabelle4.Cells(i,
"G"
) = Therapeut
And
Mid(Tabelle4.Cells(i, 2), 3, 4) =
".01."
And
Tabelle4.Cells(i,
"I"
) =
"Leistungsbereich xx"
And
Tabelle4.Cells(i,
"H"
) =
"Noch nicht erschienen"
Then
Tabelle2.Cells(6, 12) = Tabelle4.Cells(i, 5) + Tabelle2.Cells(6, 12)
End
If
Next
i
For
i = 1
To
Tabelle4.Cells(Rows.Count,
"G"
).
End
(xlUp).Row
If
Tabelle4.Cells(i,
"G"
) = Therapeut
And
Mid(Tabelle4.Cells(i, 2), 3, 4) =
".01."
And
Tabelle4.Cells(i,
"I"
) =
"Leistungsbereich xx"
And
Tabelle4.Cells(i,
"H"
) =
"Wegezeit"
Then
Tabelle2.Cells(5, 13) = Tabelle4.Cells(i, 5) + Tabelle2.Cells(5, 13)
End
If
Next
i
For
i = 1
To
Tabelle4.Cells(Rows.Count,
"G"
).
End
(xlUp).Row
If
Tabelle4.Cells(i,
"G"
) = Therapeut
And
Mid(Tabelle4.Cells(i, 2), 3, 4) =
".01."
And
Tabelle4.Cells(i,
"I"
) =
"Leistungsbereich xx"
And
Tabelle4.Cells(i,
"H"
) =
"Wegezeit"
Then
Tabelle2.Cells(6, 13) = Tabelle4.Cells(i, 5) + Tabelle2.Cells(6, 13)
End
If
Next
i
For
i = 1
To
Tabelle4.Cells(Rows.Count,
"G"
).
End
(xlUp).Row
If
Tabelle4.Cells(i,
"G"
) = Therapeut
And
Mid(Tabelle4.Cells(i, 2), 3, 4) =
".01."
And
Tabelle4.Cells(i,
"I"
) =
"Leistungsbereich xx"
And
Tabelle4.Cells(i,
"H"
) =
"Supervision (Therapeut)"
Then
Tabelle2.Cells(5, 14) = Tabelle4.Cells(i, 5) + Tabelle2.Cells(5, 14)
End
If
Next
i
For
i = 1
To
Tabelle4.Cells(Rows.Count,
"G"
).
End
(xlUp).Row
If
Tabelle4.Cells(i,
"G"
) = Therapeut
And
Mid(Tabelle4.Cells(i, 2), 3, 4) =
".01."
And
Tabelle4.Cells(i,
"I"
) =
"Leistungsbereich xx"
And
Tabelle4.Cells(i,
"H"
) =
"Supervision (Therapeut)"
Then
Tabelle2.Cells(6, 14) = Tabelle4.Cells(i, 5) + Tabelle2.Cells(6, 14)
End
If
Next
i
For
i = 1
To
Tabelle4.Cells(Rows.Count,
"G"
).
End
(xlUp).Row
If
Tabelle4.Cells(i,
"G"
) = Therapeut
And
Mid(Tabelle4.Cells(i, 2), 3, 4) =
".01."
And
Tabelle4.Cells(i,
"I"
) =
"Leistungsbereich xx"
And
Tabelle4.Cells(i,
"H"
) =
"Teamsitzung"
Then
Tabelle2.Cells(5, 19) = Tabelle4.Cells(i, 5) + Tabelle2.Cells(5, 19)
End
If
Next
i
For
i = 1
To
Tabelle4.Cells(Rows.Count,
"G"
).
End
(xlUp).Row
If
Tabelle4.Cells(i,
"G"
) = Therapeut
And
Mid(Tabelle4.Cells(i, 2), 3, 4) =
".01."
And
Tabelle4.Cells(i,
"I"
) =
"Leistungsbereich xx"
And
Tabelle4.Cells(i,
"H"
) =
"Teamsitzung"
Then
Tabelle2.Cells(6, 19) = Tabelle4.Cells(i, 5) + Tabelle2.Cells(6, 19)
End
If
Next
i
For
i = 1
To
Tabelle4.Cells(Rows.Count,
"G"
).
End
(xlUp).Row
If
Tabelle4.Cells(i,
"G"
) = Therapeut
And
Mid(Tabelle4.Cells(i, 2), 3, 4) =
".01."
And
Tabelle4.Cells(i,
"I"
) =
"Leistungsbereich xx"
And
Tabelle4.Cells(i,
"H"
) =
"Behandlung beendet"
And
Mid(Tabelle4.Cells(i, 10), 1, 2) =
"HB"
Then
Tabelle2.Cells(5, 15) = Tabelle2.Cells(5, 15) + 1
End
If
Next
i
For
i = 1
To
Tabelle4.Cells(Rows.Count,
"G"
).
End
(xlUp).Row
If
Tabelle4.Cells(i,
"G"
) = Therapeut
And
Mid(Tabelle4.Cells(i, 2), 3, 4) =
".01."
And
Tabelle4.Cells(i,
"I"
) =
"Leistungsbereich xx"
And
Tabelle4.Cells(i,
"H"
) =
"Behandlung beendet"
And
Mid(Tabelle4.Cells(i, 10), 1, 2) =
"HB"
Then
Tabelle2.Cells(6, 15) = Tabelle2.Cells(6, 15) + 1
End
If
Next
i
For
i = 1
To
Tabelle4.Cells(Rows.Count,
"G"
).
End
(xlUp).Row
If
Tabelle4.Cells(i,
"G"
) = Therapeut
And
Mid(Tabelle4.Cells(i, 2), 3, 4) =
".01."
And
Tabelle4.Cells(i,
"I"
) =
"Leistungsbereich xx"
And
Tabelle4.Cells(i,
"H"
) =
"Behandlung beendet"
And
Mid(Tabelle4.Cells(i, 10), 1, 2) =
"HB"
Then
Tabelle2.Cells(5, 17) = Tabelle4.Cells(i, 12) + Tabelle2.Cells(5, 17)
End
If
Next
i
For
i = 1
To
Tabelle4.Cells(Rows.Count,
"G"
).
End
(xlUp).Row
If
Tabelle4.Cells(i,
"G"
) = Therapeut
And
Mid(Tabelle4.Cells(i, 2), 3, 4) =
".01."
And
Tabelle4.Cells(i,
"I"
) =
"Leistungsbereich xx"
And
Tabelle4.Cells(i,
"H"
) =
"Behandlung beendet"
And
Mid(Tabelle4.Cells(i, 10), 1, 2) =
"HB"
Then
Tabelle2.Cells(6, 17) = Tabelle4.Cells(i, 12) + Tabelle2.Cells(6, 17)
End
If
Next
i
End
Sub