Loop for update
Hi Patrick,
again many thanks for your help.
I have replaced the line. Nevertheless, there comes the same error message.
Do you have one more tip?
Volker
"Patrick Molloy" schrieb im Newsbeitrag
...
sorry - there's a typo
Set F = Worksheets(D).Cells(rw, "A"))
"Volker Hormuth" wrote in message
...
"Patrick Molloy" schrieb im Newsbeitrag
...
Set D = Worksheets("Daten")
dim rw as long
rw = 2
do until D.cells(rw,"A") =""
Set F = Worksheets( D.cells(rw,"A") )
i = 2
Do While Not IsEmpty(D.Cells(i, 1))
F.Cells(1, 1) = D.Cells(i, 1)
F.Cells(2, 2) = D.Cells(i, 2)
F.Cells(5, 2) = D.Cells(i, 3)
F.Cells(6, 3) = D.Cells(i, 4)
i = i + 1
Loop
rw=rw+1
loop
MsgBox "Job Done"
End Sub
Hello Patrick,
many thanks for your quick response. As soon as I the programme execute I
get an error message:
Runtime error 13 - types unacceptable - Typen unverträglich
line: Set F = Worksheets(D.Cells(rw, "A"))
What must I change?
Thank you very much!
Volker
|