Range(
"K16:K1555"
).
Select
For
Each
Zelle
In
Selection
If
Zelle.Value =
""
Then
Zelle.FormulaR1C1 = _
"=VLOOKUP(VALUE(LEFT(RC[-10],4)),Max_final!C1:C3,3,FALSE)&VLOOKUP(VALUE(MID(RC[-10],5,4)),Max_final!C1:C3,3,FALSE)"
Select
Case
Zelle
Case
Is
=
"WSDWSD"
Zelle.Font.ColorIndex = 50
Case
Is
=
"WCSWCS"
Zelle.Font.ColorIndex = 3
Case
Is
=
"WSDWCS"
Zelle.Interior.ColorIndex = 22
Case
Is
=
"WCSWSD"
Zelle.Interior.ColorIndex = 22
Case
Is
=
"AGWSD"
Zelle.Font.ColorIndex = 25
Case
Is
=
"WSDAG"
Zelle.Font.ColorIndex = 25
Case
Is
=
"WCSAG"
Zelle.Font.ColorIndex = 25
Case
Is
=
"AGWCS"
Zelle.Font.ColorIndex = 25
Case
Else
Zelle.Interior.ColorIndex = xlColorIndexNone
End
Select
Range(
"A16"
).
Select
Next
Zelle
End
Sub