You would need to build the code to work in increments that would result in
less than 8192 rows.
Ron de Bruin has documents some approaches:
http://www.rondebruin.nl/specialcells.htm
--
Regards,
Tom Ogilvy
"Joel" wrote:
> If there are more than 8192 ares, can you run the code twice or more to
> eliminate all the row?
>
> "Tom Ogilvy" wrote:
>
> > if they are really empty
> >
> > Sub Deleterows()
> > dim r as Range
> > On Error Resume Next
> > Worksheets("Sheet1").Columns(4).specialCells(xlBlanks).Entirerow.delete
> > On goto 0
> > end Sub
> >
> > If you have more than 8192 separate areas (not just cells) in column 4 that
> > are blank, this will not work, but that is rarely the case.
> >
> > --
> > Regards,
> > Tom Ogilvy
> >
> >
> > "Robert" wrote:
> >
> > > Hi All,
> > >
> > > Could someone perhaps advice which VBA statement to use for: delete
> > > all rows within a certain sheet where column 4 is empty
> > >
> > > Many thanks in advance!
> > >
> > > Regards,
> > > Robert
> > >
> > >