Consulting

Results 1 to 4 of 4

Thread: Urgent help Needed <<removing Rows

  1. #1

    Urgent help Needed <<removing Rows

    I just need a quick code that remove the rows that contains "Total Leads", the text will be in column a...See Sample.

    Thanks!!

  2. #2
    VBAX Sage
    Joined
    Apr 2007
    Location
    United States
    Posts
    8,724
    Location
    Quickest 'one shot' way is to turn on Data Filter, filter on Totals, highlight and delete the lines.

    Paul

  3. #3
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    [VBA]Sub Macro1()
    Range("A:A").AutoFilter Field:=1, Criteria1:="Total Leads"
    Range("A2:A65536").SpecialCells(xlCellTypeVisible).EntireRow.Delete
    Range("A:A").AutoFilter
    End Sub
    [/VBA]
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  4. #4
    Thanks, that will work for now!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •