code
in it. Re-check the post in the thread.
The only thing I can think is that you copied my correction, which
should
only have applied to Combine, into Combine2 as well. If this is the
case,
replace the offending line with
.Range(Cells(iRow2, 1), Cells(iRow2, 5)).Copy _
Destination:=ThisBookMaster.Cells(iRow1, 1)
--
HTH
Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
Hi Bob,
now I have tested the second code (Combine2), after changing the
lines.
The book and the sheet are named "Master".
I get an error-message 91 (with-blockvariable not defined) at this
line.
ws.Range(ws.Cells(iRow2, 1), ws.Cells(iRow2,
5)).Copy
_
Destination:=ThisBookMaster.Cells(iRow1, 1)
What is the correct code ?
Thanks
Volker
Hallo Bob,
this was the solution.
The second code I will test tomorrow.
Thanks for your help.
Volker
Newsbeitrag
Volker,
I was grasping at straws then, I knew it wouldn't really be the
problem.
I think I have found the real problem. Change the line to
ws.Range(ws.Cells(iRow2, 1), ws.Cells(iRow2,
5)).Copy
_
Destination:=Sheets("Master").Cells(iRow1,
1)
--
HTH
Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
message
Volker,
Is it because your sheet is not called Master, but Sammlung?
--
HTH
Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
Hallo Bob,
I got a mistake 1004 at this line:
ws.Range(Cells(iRow2, 1), Cells(iRow2,
5)).Copy
Destination:=Sheets("Master").Cells(iRow1, 1)
What can I change ?
Volker
"Bob Phillips" <
[email protected]>