That is nothing short of amazing. THANK YOU very much.
As you probably ascertained, the end down did go to the last row.
And I'm assuming you won't mind, but I did take the liberty to change the
name of the macro from blah to kudos.
Many thanks gain,
Steve
"p45cal" wrote:
>
> assuming the the last of the rows involved can be reliably ascertained
> from selecting M3 then pressing End, then the down button (you don't
> have to do this, it's just the technique the macro uses to identify the
> rows involved) then this code should do it. It assumes the correct sheet
> is active:
>
>
> VBA Code:
> --------------------
>
>
> Sub blah()
> Dim xxx As Range
> Set xxx = Range(Range("M3"), Range("M3").End(xlDown).Offset(, 5))
> With xxx
> For i = xxx.Rows.Count To 2 Step -1
> .Rows(i).Select
> Different = False
> For Each cll In .Rows(i).Cells
> cll.Select
> If cll <> cll.Offset(-1) Then
> Different = True
> Exit For
> End If
> Next cll
> If Not Different Then .Rows(i).Clear
> Next i
> End With
> End Sub
> --------------------
>
>
>
>
>
>
>
Steve;711789 Wrote:
> >
> yes, they'll always be next to each other.
> >
> > "p45cal" wrote:
> >
> > >
> > > ..and is the range always fully sorted so that duplicates are
> guaranteed
> > > to be next to each other?
> > >
> > >
> > > --
> > > p45cal
> > >
> > > *p45cal*
> > >
> ------------------------------------------------------------------------
> > > p45cal's Profile: http://www.thecodecage.com/forumz/member.php?u=558
> > > View this thread: 'Deleting/Clearing duplicate range of cells - The
> Code Cage Forums'
> (http://www.thecodecage.com/forumz/sh...d.php?t=199126)
> > >
> > > 'The Code Cage - Mobile' (http://www.thecodecage.com/forumz)
> > >
> > > .
> > >
>
>
> --
> p45cal
>
> *p45cal*
> ------------------------------------------------------------------------
> p45cal's Profile: http://www.thecodecage.com/forumz/member.php?u=558
> View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=199126
>
> http://www.thecodecage.com/forumz
>
> .
>