+ Reply to Thread
Results 1 to 3 of 3

macro to delete row containing "private" then rows beneath upto blank row

  1. #1
    Registered User
    Join Date
    05-09-2009
    Location
    Manchester,England
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    58

    macro to delete row containing "private" then rows beneath upto blank row

    Hi Guys,

    I have been given a spreadsheet which contains fault logs, this is copied from a web file and pasted into excel.

    The headers are all in col A with data below and to the right so

    Header 1
    Rows 2 to say 15 have details of the faults

    Then there is a blank row so Row 16

    Row 17 will have another header
    Rows 18 to 59 have details of the faults

    Etc

    The amount of rows will vary every time.

    What I need to do is look for a specific word contained in each of the headers ie "private" (this word does not appear in the faults detail rows) then delete that entire row and delete the rows underneath until it finds the next blank row.

    Then loop until all the sheet has been checked.

    Can anyone help.

    I have looked at filtering then delete but not all the rows will have the "private" in them so I am really stuck.

    Thanks
    Wagstaff
    Attached Files Attached Files
    Last edited by Wagstaff; 08-24-2010 at 01:12 AM. Reason: File attached

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: macro to delete row containing "private" then rows beneath upto blank row

    Hi

    how about
    Please Login or Register  to view this content.
    rylo

  3. #3
    Registered User
    Join Date
    05-09-2009
    Location
    Manchester,England
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    58

    Re: macro to delete row containing "private" then rows beneath upto blank row

    Thankyou rylo,

    That was just the ticket I needed. Great Stuff!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1