+ Reply to Thread
Results 1 to 4 of 4

Deleting rows based on max value in entire row

  1. #1
    Registered User
    Join Date
    08-12-2010
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    5

    Deleting rows based on max value in entire row

    I need to loop through a sheet of data and delete the rows where the maximum value in the row is below a certain threshold. Ignoring blank rows though and in vba no formulas I have seen examples with cell values compared to criteria but not entire range.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Deleting rows based on max value in entire row

    Hello form,

    This macro will delete the rows on the active sheet that are less than the threshold value. Change this value to what you need.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    08-12-2010
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Deleting rows based on max value in entire row

    thanks this is v.good! Can this be tailored for only certain columns eg columns b to z (but every row)?

  4. #4
    Registered User
    Join Date
    08-12-2010
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Deleting rows based on max value in entire row

    actually when run it doesn't like the Range(DelRows).Delete bit (run tim error though).

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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