ich hab da ein Problem mit folgender For schleife:
For i = 8 To 500
For j = 8 To 500
s = readout(i, j, 4, "c")
s = readout(i, j, 5, "d")
s = readout(i, j, 6, "e")
s = readout(i, j, 7, "f")
s = readout(i, j, 8, "h")
s = readout(i, j, 9, "i")
s = readout(i, j, 10, "j")
s = readout(i, j, 11, "k")
s = readout(i, j, 12, "l")
s = readout(i, j, 13, "m")
s = readout(i, j, 14, "n")
next j
next i
Private Function readout(i As Integer, j1 As Integer, j2 As Integer, buch As String) As String
End Function
Er meckert bei dem i im Funktionaufruf, wegen Typunverträglichkeit!
"Argumenttyp ByRef unverträglich"
Was kann ich tun?
Außerdem Brauche ich eigentlich in der Function selbst keinen Rückgabewert! Jedoch wenn ich "As String" weglasse und ober beim Aufruf das "s=" dann meckert er ebenfalls! Wie kann ich eine Methode mit Parameterübergabe ohne Rückgabewert aufrufen?
Danke für eure Hilfe
Gruß
Thorsten