+ Reply to Thread
Results 1 to 4 of 4

Macro to find text and delete active row and rows above/below

  1. #1
    Registered User
    Join Date
    01-10-2013
    Location
    Greenville, SC
    MS-Off Ver
    Excel 2010
    Posts
    4

    Macro to find text and delete active row and rows above/below

    In an Excel 2010 document, I need to find the word "OME" in Column G, delete that entire line, two entire lines below it, and five entire lines above it.

    Any suggestions? TIA!!!


    Jayme

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Macro to find text and delete active row and rows above/below

    there are only one or many ? attach a sample file with more informations
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    01-10-2013
    Location
    Greenville, SC
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Macro to find text and delete active row and rows above/below

    There would be many occurrences of the word "OME" in Column G. I would always need to delete that entire line, two entire lines below it, and five entire lines above it.

  4. #4
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,516

    Re: Macro to find text and delete active row and rows above/below

    Try this on a copy of your workbook


    Please Login or Register  to view this content.

+ 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