Ich erhalte eineVBA Arbeitsmappe außerhalb des zulässigen Bereichs - Index Fehler
subscript out of range
Fehler, wenn im ein Array und eine Arbeitsmappe in diese Funktion übergeben. Kann jemand sehen, was damit nicht stimmt?
--Update--
Private Function PasteFunction(cd As Variant, wk As Workbook) As Boolean
Dim bool As Boolean, row As Integer, col As Integer
bool = False
col = 1
row = 3
Do While bool = False
MsgBox row
MsgBox col
If IsEmpty(wk.Sheets("Sheet1").Cells(row, col)) = True Then
For col = 1 To 81
wk.Sheets("Sheet1").Cells(row, col) = cd(col)
Next col
bool = True
Else
row = row + 1
End If
Loop
End Function
'Zeile' ist definitiv ein schlechter Variablenname in Excel! Und Zeile und Spalte sollte 'Long' sein, nie' Ganzzahl' –