Hi Wouter,
this line is in error bocomes red
If ActiveCell.Offset(0, intCol).Value <> ActiveCell.Offset
(-1, intCol).Value Then
can you please check thanks !
"RadarEye" wrote:
> Hi Arno
>
> Try this, created with Excel 2003:
>
> Sub RemoveRepeatedRow()
> Dim blnRemove As Boolean
> Dim intCols As Integer
> Dim intCol As Integer
>
> ActiveSheet.UsedRange.Cells(2, 1).Select
> intCols = ActiveSheet.UsedRange.Columns.Count - 1
> Do
> blnRemove = True
> For intCol = 0 To intCols
> If ActiveCell.Offset(0, intCol).Value <> ActiveCell.Offset
> (-1, intCol).Value Then
> blnRemove = False
> Exit For
> End If
> Next
> If blnRemove Then
> ActiveCell.EntireRow.Delete
> Else
> ActiveCell.Offset(1, 0).Select
> End If
> Loop Until IsEmpty(ActiveCell)
>
> End Sub
>
>
> HTH,
>
> Wouter
>
|