This will tidy up the source before you do your stuff
Set oWb = Workbooks("June data".xls")
For Each sh In oWb.Worksheets
iLastRow = sh.Cells(sh.Rows.Count,"A").End(xlUp).Row
For i = iLastRow To 1 Step -1
If sh.Cells(i,"A").Value = "" Then sh.Rows(i).Delete
If Application.Countif(sh.Cells(i,"A").Value, sh.Columns(1),0) >
1 Then
sh.Rows.delete
End If
Next i
Next sh

Signature
HTH
Bob Phillips
(replace somewhere in email address with gmail if mailing direct)
> Hi all,
>
[quoted text clipped - 38 lines]
>
> Art.
Art MacNeil - 01 Jul 2006 04:53 GMT
Thank you for replying Bob,
I tried the code below and these 2 lines won't run.
If Application.Countif(sh.Cells(i,"A").Value, sh.Columns(1),0) >
1 Then
Any ideas?
Thanks,
Art.
Sorry for the delay, I was away for a few days.
> This will tidy up the source before you do your stuff
>
[quoted text clipped - 57 lines]
>>
>> Art.
Bob Phillips - 01 Jul 2006 09:21 GMT
That should be one line. The NG has wrapped the code around, so move the 1
Then to the end of the previous line.

Signature
HTH
Bob Phillips
(replace somewhere in email address with gmail if mailing direct)
> Thank you for replying Bob,
>
[quoted text clipped - 73 lines]
> >>
> >> Art.
Art MacNeil - 01 Jul 2006 21:25 GMT
Will do.
Thanks.
> That should be one line. The NG has wrapped the code around, so move the 1
> Then to the end of the previous line.
[quoted text clipped - 88 lines]
>> >>
>> >> Art.
Art MacNeil - 01 Jul 2006 21:36 GMT
I tried it and I'm getting a compile error. "End if without block if"
The code now looks like this: (I'll keep it short so the ng doesn't wrap
it)
Set oWb = Workbooks...
For Each sh In o...
iLastRow = sh.Ce...
For i = iLastRow To...
If sh.Cells(i, "A")....
If Application.Count...
End If
Next i
Next sh
End Sub
Thank you for your help,
Art.
> That should be one line. The NG has wrapped the code around, so move the 1
> Then to the end of the previous line.
[quoted text clipped - 88 lines]
>> >>
>> >> Art.