Re: Delet all row's with "TOTALS"

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: MESTRELLA29 (MESTRELLA29_at_discussions.microsoft.com)
Date: 02/28/05


Date: Mon, 28 Feb 2005 09:23:04 -0800

Once Again You are a BIG HELP,

THANKS

"Tom Ogilvy" wrote:

>
> Set c = .Find("TOTALS", LookIn:=xlValues)
> If Not c Is Nothing Then
> firstAddress = c.Address
> Do
> set d = c.offset(-1,0)
> c.EntireRow.Delete
> Set c = .FindNext(d)
>
> Loop While Not c Is Nothing
> End If
> End With
>
> --
> Regards,
> Tom Ogilvy
>
>
> "MESTRELLA29" <MESTRELLA29@discussions.microsoft.com> wrote in message
> news:4DC1220C-65A8-4FAC-9A52-626FFCBB86F9@microsoft.com...
> > I have a Download that I am trying to clean up.
> > The download has data that I need but also has totals in severals row's
> > I want to Find the "TOTALS" and delete the Row for all the rows tha
> contains
> > "TOTALS"
> >
> > I have is This: I am geting error Message in "Set c = .FindNext(c)"
> > Columns("d:d").Select
> >
> > With Selection
> >
> > Set c = .Find("TOTALS", LookIn:=xlValues)
> > If Not c Is Nothing Then
> > firstAddress = c.Address
> > Do
> > c.EntireRow.Delete
> > Set c = .FindNext(c)
> >
> > Loop While Not c Is Nothing And c.Address <> firstAddress
> > End If
> > End With
> >
>
>
>



Relevant Pages

  • Re: GetOpenFilename MultiSelect failure
    ... selection. ... Regards, ... > Tom Ogilvy ... >>> Sub Test() ...
    (microsoft.public.excel.programming)
  • Re: Programming to delet padded spaces
    ... for each cell in selection ... Regards, ... Tom Ogilvy ...
    (microsoft.public.excel.programming)
  • Re: Shape Selection Event !!
    ... I doubt there is going to be a way for you to trap the selection of ... > Regards. ... >> Tom Ogilvy ...
    (microsoft.public.excel.programming)
  • Re: opposite of IsNumeric
    ... Look at VBA HELP on the LIKE operator. ... Regards, ... Tom Ogilvy ... > but is there a function that returns true if the selection is all text? ...
    (microsoft.public.excel.programming)
  • Re: Download files without alerts by Excel VBA
    ... like you need automate the manual interaction with the web page of figure ... Regards, ... Tom Ogilvy ... > In fact there is no ditect link to download the file. ...
    (microsoft.public.excel.programming)