[VBA] Array1, Array2,... mit variable im Namen
31.01.2017 21:55:05
Nils
ich habe 16 Arrays mit den Namen:
Stand1, Stand2, Stand3, ... , Stand16
Für jedes Array habe ich eine Schleife:
If Not IsEmpty(Stand1) Then
If UBound(Stand1) = 0 Then
Cells(Stand1(i), "L") = "Nutzlos"
Else
For i = 0 To UBound(Stand1) - 1
If Cells(Stand1(i), "C") "Ein" Then
If i = 0 Then
Cells(Stand1(i), "L") = "Nutzlos"
End If
If Cells(Stand1(i + 1), "C") "Ein" Then
Cells(Stand1(i + 1), "L") = "Nutzlos"
End If
End If
Next
End If
End If
Danach kommt die Selbe Schleife für Array 2... usw.Kann man das zusammenfassen?
Anzeige