In etwa auch mit x und y:

If x = 1 Then Daten1(y)...
If x = 2 Then Daten2(y)...
...