Delete block of rows

  • Hi All.
    I have a huge spreadsheet and I need delete block of rows. First row of block beginning with characters QWD and last row of block beginning with characters FTC. For instance, block of rows start row with QWD and last row FTC:
    798
    4654
    3211345
    11654
    QWD
    LKJ
    LMN
    KL
    FCT

    656
    46546
    6456546
    6546
    QWD
    LR
    LPL
    UJ
    FCT

    How to delete such block in whole spreadsheet? Thanks.

  • Re: Delete block of rows


    Welcome to the Board.


    Is it always five rows you're going to delete? If yes, you could use (note this searches the entire activesheet for "QWD"):

    Barrie Davidson
    My Excel Web Page
    "You're only given a little spark of madness. You mustn't lose it." - Robin Williams

  • Re: Delete block of rows


    The macro will delete five rows if it finds an exact match for "QWD" (as per your first posting). Please clarify your data (I'm guessing that the cell begins with "QWD"?).

    Barrie Davidson
    My Excel Web Page
    "You're only given a little spark of madness. You mustn't lose it." - Robin Williams

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!